Skip to content

Commit

Permalink
github: Update tag base name extraction in release workflow
Browse files Browse the repository at this point in the history
- Modify logic to extract base name from Git tag
- Replace deprecated set-output with GITHUB_ENV for variables

Signed-off-by: Huang Rui <[email protected]>
  • Loading branch information
vowstar committed Feb 29, 2024
1 parent bddf932 commit 85736c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
id: get_tag
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
BASE_NAME=$(echo $TAG_NAME | cut -d '_' -f 1)
BASE_NAME=${TAG_NAME%_*}
echo "Full tag name: $TAG_NAME"
echo "Base name: $BASE_NAME"
echo "##[set-output name=tag_base_name;]$BASE_NAME"
echo "TAG_BASE_NAME=$BASE_NAME" >> $GITHUB_ENV
- name: Build and Validate KiCad Project
run: |
PROJECT_DIRS="${{ steps.get_tag.outputs.tag_base_name }}"
PROJECT_DIRS=$TAG_BASE_NAME
for DIR in $PROJECT_DIRS; do
echo "Processing directory: $DIR"
pushd ${{github.workspace}}/$DIR
Expand Down

0 comments on commit 85736c6

Please sign in to comment.