Skip to content

Commit

Permalink
Release ci : force tag name from the versio file (workaround : if pus…
Browse files Browse the repository at this point in the history
…hed from a branch, release action seems to lost the tag's ref)
  • Loading branch information
fxi committed Jun 11, 2024
1 parent 74bb5a7 commit 04f7372
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Get version
id: get_version
run: echo "AM_VERSION=$(cat version.txt)" >> $GITHUB_ENV

- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -240,6 +244,7 @@ jobs:
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.AM_VERSION }}
files: accessmod/**
body_path: ./release-notes.md
token: ${{ secrets.github_token }}
Expand Down

0 comments on commit 04f7372

Please sign in to comment.