From f930f925a80b71c3900ed0758cdf5004522d514a Mon Sep 17 00:00:00 2001 From: Torantulino Date: Sun, 2 Apr 2023 09:50:08 +0100 Subject: [PATCH] Updates auto_format to work on forks. --- .github/workflows/auto_format.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/auto_format.yml b/.github/workflows/auto_format.yml index 46b33d3e..66c559e7 100644 --- a/.github/workflows/auto_format.yml +++ b/.github/workflows/auto_format.yml @@ -2,8 +2,6 @@ name: auto-format on: pull_request jobs: format: - # Check if the PR is not from a fork - if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -21,6 +19,6 @@ jobs: run: | git config --global user.name 'Torantulino' git config --global user.email 'toran.richards@gmail.com' - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} + git remote set-url origin https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${{ github.repository }} git commit -am "Automated changes" git push