Skip to content

Update StyLuaGitHubAction.yml #9

Update StyLuaGitHubAction.yml

Update StyLuaGitHubAction.yml #9

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
version: v0.18.0

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

View workflow run for this annotation

GitHub Actions / formatter-all

Invalid workflow file

The workflow is not valid. .github/workflows/StyLuaGitHubAction.yml (Line: 26, Col: 9): Unexpected value 'version'