Skip to content

feat: github actions workflow to fix formatting #2

feat: github actions workflow to fix formatting

feat: github actions workflow to fix formatting #2

Workflow file for this run

name: Fix formatting
on:
pull_request:
types: [labeled]
jobs:
fix-formatting:
runs-on: ubuntu-latest
if: ${{ github.event.label.name == 'fix:formatting' }}
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}
private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}
- name: 'Checkout'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ steps.generate-token.outputs.token }}
- name: Fix formatting
run: make install-all && format-all
- name: Commit and push
uses: EndBug/add-and-commit@v9
with:
message: chore: fix formatting

Check failure on line 31 in .github/workflows/fix-format.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/fix-format.yml

Invalid workflow file

You have an error in your yaml syntax on line 31