From 34ff40733b88946657e5ab238243dd2c88892806 Mon Sep 17 00:00:00 2001 From: "@a-ng-d" Date: Thu, 5 Sep 2024 22:46:45 +0200 Subject: [PATCH] feat: Update release workflow to include pull request milestone title --- .github/workflows/release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c77f4bcf..ea074417 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} @@ -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 \ No newline at end of file