From fa13694f2bff1768e8f3e382bdc7b82f18ddc1c3 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Thu, 4 Apr 2024 18:41:49 +1100 Subject: [PATCH] chore: fix autofmt --- .github/workflows/autofmt.yml | 6 ++++-- backend/controller/controller.go | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autofmt.yml b/.github/workflows/autofmt.yml index 8d63f175ca..24a67a47a8 100644 --- a/.github/workflows/autofmt.yml +++ b/.github/workflows/autofmt.yml @@ -14,7 +14,9 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.ref }} + ref: main + fetch-depth: 0 + token: ${{ secrets.FTL_AUTOFMT_TOKEN }} - name: Init Hermit run: ./bin/hermit env -r >> "$GITHUB_ENV" - name: Auto format @@ -28,4 +30,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 \ No newline at end of file + git push diff --git a/backend/controller/controller.go b/backend/controller/controller.go index 87292e4db9..255e01ae93 100644 --- a/backend/controller/controller.go +++ b/backend/controller/controller.go @@ -1,8 +1,8 @@ package controller import ( - "context" "errors" + "context" "fmt" "io" "math/rand"