From 04f7372ba034d791eb06673ae1a4a943ac698dea Mon Sep 17 00:00:00 2001 From: fxi Date: Tue, 11 Jun 2024 19:17:41 +0200 Subject: [PATCH] Release ci : force tag name from the versio file (workaround : if pushed from a branch, release action seems to lost the tag's ref) --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7561b545..13e3b5ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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 }}