refactor: update isNew property for multiple features #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release for Figma | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set tag and release name | |
id: set_vars | |
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.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 }} | |
with: | |
tag_name: ${{ env.TAG_NAME }} | |
release_name: ${{ env.RELEASE_NAME }} | |
body: | | |
## 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 |