Skip to content

Commit

Permalink
chore: attempt to auto format PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jul 25, 2024
1 parent 26e7d83 commit c6de398
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
on:
schedule:
# Run daily
- cron: "0 22 * * *"
name: Auto-format
pull_request:
name: Auto-format Pull Request
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
ref: ${{ github.head_ref }}
token: ${{ secrets.FTL_AUTOFMT_TOKEN }}
- name: Init Hermit
run: ./bin/hermit env -r >> "$GITHUB_ENV"
Expand All @@ -25,4 +22,4 @@ jobs:
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
git push origin ${{ github.head_ref }}

0 comments on commit c6de398

Please sign in to comment.