Skip to content

Update StyLuaGitHubAction.yml #10

Update StyLuaGitHubAction.yml

Update StyLuaGitHubAction.yml #10

name: formatter-all
on:
push:
branches: [ main, dev ]
pull_request:
types: [ labeled ]
jobs:
formatter:
name: formatter
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.label.name == 'format_all') }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install stylua and format files
uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v0.18.0
args: -- .

Check failure on line 29 in .github/workflows/StyLuaGitHubAction.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/StyLuaGitHubAction.yml

Invalid workflow file

You have an error in your yaml syntax on line 29