Skip to content

Commit

Permalink
Refactor release.yml to extract local tag for tag_name and release_name
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ng-d committed Sep 21, 2024
1 parent d3d4090 commit 67046fe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,20 @@ jobs:
with:
fetch-depth: 0

- name: Extract local tag
id: extract_tag
run: |
local_tag=$(git tag --points-at HEAD | head -n 1)
echo "::set-output name=local_tag::$local_tag"
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
tag_name: ${{ steps.extract_tag.outputs.local_tag }}
release_name: Release ${{ steps.extract_tag.outputs.local_tag }}
body: |
## What's Changed
[Friendly release note](https://ui-color-palette.canny.io/changelog/${{ github.ref_name }})・[Full Changelog](https://github.com/inVoltag/figma-ui-color-palette/commits/${{ github.ref_name }})

0 comments on commit 67046fe

Please sign in to comment.