Skip to content

format-json-yml

format-json-yml #408

Workflow file for this run

---
name: format-json-yml
on:
pull_request:
types:
- opened
- synchronize
- reopened
- closed
merge_group:
permissions:
contents: write
pull-requests: write
jobs:
format-json-yml:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@c8f55efbd427e7465d6da1106e7979bc8aaee856 # v1.10.1
with:
app-id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }}
private-key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }}
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
if: github.event_name != 'pull_request' || github.event.action != 'closed'
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }}
token: ${{ steps.generate_token.outputs.token }}
- uses: dev-hato/actions-format-json-yml@dd8a3dfa03cf76425af59d64f2982d08b4872449 # v0.0.65
with:
github-token: ${{ steps.generate_token.outputs.token }}
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true