diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bed0e2f..be0bcc8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -421,7 +421,7 @@ jobs: - create-release: + do-release: needs: [run-unit-tests-linux, run-unit-tests-windows, build-windows, build-debian, build-arch, build-rhel] if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.DO_RELEASE == 'true' && needs.build-windows.result == 'success' && needs.build-debian.result == 'success' && needs.build-arch.result == 'success' && needs.build-rhel.result == 'success' }} runs-on: ubuntu-latest @@ -430,10 +430,24 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.branch || github.head_ref || github.ref }} - + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Configure git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Rebase develop onto main + run: | + git fetch origin main develop + git checkout main + git rebase origin/develop + git push origin main + - name: Install Poetry uses: snok/install-poetry@v1 - + - name: Get version id: version run: echo "version=$(poetry version -s)" >> $GITHUB_OUTPUT @@ -502,8 +516,8 @@ jobs: AWS_PAGER: "" sync-wiki: - needs: create-release - if: always() && needs.create-release.result == 'success' + needs: do-release + if: always() && needs.do-release.result == 'success' uses: ./.github/workflows/sync-wiki.yml with: branch: ${{ github.event.inputs.branch || github.ref }}