From 95da9334e0bb99cf2fa745abc00cbd3018ba8e65 Mon Sep 17 00:00:00 2001 From: Gobinath Loganathan Date: Thu, 5 Jan 2023 19:13:58 -0500 Subject: [PATCH] Update GH workflow to synchronize after release --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6de2476..9830a9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 + token: ${{ secrets.GH_API_SECRET }} - name: Set up Python 3.10 uses: actions/setup-python@v3 @@ -52,3 +55,13 @@ jobs: uses: pypa/gh-action-pypi-publish@v1.6.4 with: password: ${{ secrets.PYPI_API_TOKEN }} + + - name: Sync Release with Master + run: | + git fetch origin + git checkout release + git pull origin release + git checkout master + git pull origin master + git merge release --ff-only + git push origin master