Skip to content

fix: add EndColumn field to errors (#1177) #2343

fix: add EndColumn field to errors (#1177)

fix: add EndColumn field to errors (#1177) #2343

Workflow file for this run

on:
push:
branches:
- main
name: Auto-format
concurrency:
group: ${{ github.ref }}-autofmt
cancel-in-progress: true
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
token: ${{ secrets.FTL_AUTOFMT_TOKEN }}
- name: Init Hermit
run: ./bin/hermit env -r >> "$GITHUB_ENV"
- name: Auto format
run: autofmt
- name: Check for modified files
id: git-check
run: echo "modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)" >> "$GITHUB_OUTPUT"
- name: Push changes
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git commit -am "chore(autofmt): Automated formatting"
git push