Skip to content

Commit f9a017b

Browse files
committed
more informative release tag
1 parent c1f9c30 commit f9a017b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/parallel_build.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,17 @@ jobs:
8585
- name: Release framework-arduinoespressif32
8686
uses: jason2866/[email protected]
8787
with:
88-
tag_name: ${{ github.run_number }}
88+
tag_name: ${{ steps.set_tag_name.outputs.tag_name }}
8989
body_path: release-info.txt
9090
prerelease: true
9191
files: |
9292
framework-arduinoespressif32-*.zip
9393
release-info.txt
9494
env:
9595
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96+
- name: Set tag name
97+
id: set_tag_name
98+
run: |
99+
IDF_VERSION=$(grep '^IDF_VERSION=' release-info.txt | cut -d'=' -f2 | cut -d'.' -f1,2 | tr -d '"')
100+
DATE=$(date +"%d.%m")
101+
echo "tag_name=IDF${IDF_VERSION}-${DATE}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)