From d671efd7c8bf086aca262433f7f183c21b9e5bab Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 23 Oct 2024 10:25:56 +0100 Subject: [PATCH] test --- .github/workflows/on-pr.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on-pr.yml b/.github/workflows/on-pr.yml index aa64dc83..0d38fb28 100644 --- a/.github/workflows/on-pr.yml +++ b/.github/workflows/on-pr.yml @@ -2,6 +2,11 @@ name: CI - Pull Request on: pull_request +# Pull Request Runs on the same branch will be cancelled +concurrency: + group: ${{ github.head_ref }} + cancel-in-progress: true + env: FIGMA_ACCESS_TOKEN: ${{secrets.FIGMA_PERSONAL_ACCESS_TOKEN}} @@ -22,14 +27,19 @@ jobs: run: npm ci - name: Run tests run: npm run test - - name: Get lastUpdated from package.json - id: lastUpdated - run: echo "lastUpdated=$(cat package.json | jq .lastUpdated)" >> $GITHUB_OUTPUT + + release-comment: + name: Release Comment + runs-on: ubuntu-latest + if: ${{ contains(github.event.pull_request.title, 'release zeta-icons') }} && ${{ contains(github.event.pull_request.title, 'chore(main)') }} + steps: - name: Comment uses: mikedloss/create-update-comment@v1 + env: + lastUpdated: ${{cat package.json | jq .lastUpdated}} with: token: ${{ secrets.GITHUB_TOKEN }} unique-identifier: "lastUpdated comment" message: | - ## PR is ready to merge. - Last updated: ${{steps.lastUpdated.outputs.lastUpdated}} + ### PR is ready to merge. + Last updated: ${{ env.lastUpdated }}