Skip to content

Commit

Permalink
Merge pull request #375 from sbrunner/changelog
Browse files Browse the repository at this point in the history
Fix release creation in changelog workflow
  • Loading branch information
sbrunner authored Mar 9, 2023
2 parents a1cd700 + 1e08348 commit f7a9f1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ jobs:
steps:
- name: Create release
run: |
if [[ ${{ env.GITHUB_REF_NAME }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
gh release create ${{ env.GITHUB_REF_NAME }}
if [[ ${{ github.ref_name }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
gh release create ${{ github.ref_name }} --generate-notes || true
fi
if: github.event_name == 'push' && github.ref_type == 'tag'
env:
GH_TOKEN: ${{ github.token }}

- name: Get Date
id: get-date
Expand Down

0 comments on commit f7a9f1a

Please sign in to comment.