Skip to content

Commit

Permalink
feat: Update release workflow to include pull request milestone title
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ng-d committed Sep 5, 2024
1 parent f52ab13 commit 34ff407
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,17 @@ jobs:

- name: Set tag and release name
id: set_vars
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
echo "TAG_NAME=${GITHUB_REF_NAME}" >> $GITHUB_ENV
echo "RELEASE_NAME=UI Color Palette ${GITHUB_REF_NAME}" >> $GITHUB_ENV
else
echo "TAG_NAME=${{ github.event.pull_request.milestone }}" >> $GITHUB_ENV
echo "RELEASE_NAME=UI Color Palette ${{ github.event.pull_request.milestone }} • ${{ github.event.pull_request.title}}" >> $GITHUB_ENV
echo "TAG_NAME=${{ github.event.pull_request.milestone.title }}" >> $GITHUB_ENV
echo "RELEASE_NAME=UI Color Palette ${{ github.event.pull_request.milestone.title }} • ${{ github.event.pull_request.title }}" >> $GITHUB_ENV
fi
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand All @@ -42,4 +41,4 @@ jobs:
## What's Changed
[Friendly release note](https://ui-color-palette.canny.io/changelog/${{ github.ref }})・[Full Changelog](https://github.com/inVoltag/figma-ui-color-palette/commits/${{ github.ref }})
draft: false
prerelease: false
prerelease: false

0 comments on commit 34ff407

Please sign in to comment.