Skip to content

Commit

Permalink
Moving checkout after publish of GitHub Release to enable reading ./R…
Browse files Browse the repository at this point in the history
…ELEASEMOTES.md
  • Loading branch information
kraenhansen committed Mar 27, 2024
1 parent 7867d46 commit e4905c4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,20 363,14 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ steps.find-pull-request.outputs.number }}
method: squash

- name: Checkout base branch (after merge)
uses: actions/checkout@v3
if: ${{ inputs.dry_run == false }}
with:
submodules: recursive
ref: ${{ steps.find-pull-request.outputs.base-ref }}

- name: Publish Github Release
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
if: ${{ inputs.dry_run == false }}
with:
artifacts: "dist/*.exe,dist/*.dmg,dist/*.zip,dist/*.AppImage"
bodyFile: ./RELEASENOTES.md
commit: ${{ steps.find-pull-request.outputs.base-ref }}
tag: v${{ env.PACKAGE_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
Expand All @@ -392,6 386,13 @@ jobs:
# This job might fail due to failed markdown-to-slack conversion.
continue-on-error: true

- name: Checkout base branch (after merge)
uses: actions/checkout@v3
if: ${{ inputs.dry_run == false }}
with:
submodules: recursive
ref: ${{ steps.find-pull-request.outputs.base-ref }}

- name: Update Changelog
run: |
echo "## vNext (TBD)
Expand Down

0 comments on commit e4905c4

Please sign in to comment.