Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 23, 2024
1 parent c98e8ee commit c39def4
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

Expand All @@ -22,14 +27,21 @@ 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: Get lastUpdated
if: lastUpdated
run: echo "lastUpdated=${{cat package.json | jq .lastUpdated}}" >> $GITHUB_ENV

- name: Comment
uses: mikedloss/create-update-comment@v1
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: ${{ steps.lastUpdated.outputs.lastUpdated }}

0 comments on commit c39def4

Please sign in to comment.