Skip to content

Commit

Permalink
💚 Fix automatic release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sgraaf committed Dec 24, 2023
1 parent 0995591 commit c96efaf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Get the library version
run: |-
echo 'LIBRARY_VERSION='$(grep -oP 'version = "\K[^"]+' $INIT_FILE) >> $GITHUB_ENV
- name: Get the current date
run: |-
echo 'CURRENT_DATE='$(date '+%Y-%m-%d') >> $GITHUB_ENV
- name: Increment the patch
run: |-
echo 'NEW_VERSION='$(echo $CURRENT_VERSION | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.) >> $GITHUB_ENV
Expand All @@ -42,11 +45,11 @@ jobs:
- name: Create a GitHub Release
uses: softprops/action-gh-release@v1
with:
name: "v$NEW_VERSION"
tag_name: "v$NEW_VERSION"
name: v${{ env.NEW_VERSION }}
tag_name: v${{ env.NEW_VERSION }}
body: |
# v$NEW_VERSION ($(date '+%Y-%m-%d'))
# v${{ env.NEW_VERSION }} (${{ env.CURRENT_DATE }})
## Changes
- Upgraded Font Awesome to version $LIBRARY_VERSION
- Upgraded Font Awesome to version ${{ env.LIBRARY_VERSION }}

0 comments on commit c96efaf

Please sign in to comment.