Skip to content

ZetaChain: Update Explorer Urls #1

ZetaChain: Update Explorer Urls

ZetaChain: Update Explorer Urls #1

name: Run prettier write

Check failure on line 1 in .github/workflows/prettier_write.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/prettier_write.yml

Invalid workflow file

(Line: 15, Col: 18): Unrecognized named-value: 'PAT'. Located at position 1 within expression: PAT
on:
pull_request:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
env:
PAT: ${{ secrets.PAT }}
with:
token: ${{ PAT }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/cache@v2
name: Configure npm caching
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Run prettier
run: |-
npx prettier --write '_data/*/*.json'
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: 'Fix formatting'