Skip to content

format-json-yml

format-json-yml #392

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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
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@364a3279a0b6988ec5e81a80407246d7dc075c39 # v0.0.64
with:
github-token: ${{ steps.generate_token.outputs.token }}
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true