ci: Add comment showing lastUpdated time for icons #59
Workflow file for this run
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: CI - Pull Request | ||
on: pull_request | ||
env: | ||
FIGMA_ACCESS_TOKEN: ${{secrets.FIGMA_PERSONAL_ACCESS_TOKEN}} | ||
jobs: | ||
compile_js_modules: | ||
name: Compile JS Modules | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
registry-url: "https://registry.npmjs.org" | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{github.head_ref}} | ||
- name: Install packages | ||
run: npm ci | ||
- name: Run tests | ||
run: npm run test | ||
release-comment: | ||
name: Release Comment | ||
runs-on: ubuntu-latest | ||
# if: ${{github.}} TODO: Add condition to only run on PRs that contain release in the title | ||
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}} | ||
Check failure on line 36 in .github/workflows/on-pr.yml GitHub Actions / CI - Pull RequestInvalid workflow file
|
||
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: $(cat package.json | jq .lastUpdated) |