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 b18b660
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 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,26 @@ 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, 'chore(main): release zeta-icons')}}
steps:
# - name: Get lastUpdated from package.json
# id: lastUpdated
# run: echo "lastUpdated=$(cat package.json | jq .lastUpdated)" >> $GITHUB_OUTPUT
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) | jq .title}}
run: echo "$GITHUB_CONTEXT"
- 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: $(cat package.json | jq .lastUpdated)

0 comments on commit b18b660

Please sign in to comment.