Skip to content

Commit

Permalink
Use auto committed sha if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
hoogi91 committed Aug 12, 2024
1 parent 90a270f commit eb8730e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ jobs:
sed -i -E "s/[0-9]+.[0-9]+.[0-9]+/$VERSION/g" Documentation/Settings.cfg
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- uses: stefanzweifel/git-auto-commit-action@v5
- id: autocommit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: https://github.com/hoogi91/spreadsheets/releases/tag/${{ steps.bump-version.outputs.version }}
- run: gh release create ${{ steps.bump-version.outputs.version }} --generate-notes --draft --target=${{ github.sha }} --latest=${{ inputs.latest-release }}
- run: gh release create ${{ steps.bump-version.outputs.version }} --generate-notes --draft --target=${{ steps.autocommit.output.commit_hash || github.sha }} --latest=${{ inputs.latest-release }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit eb8730e

Please sign in to comment.