Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Updates auto_format to work on forks.

Torantulinof930f925a80b
diff --git a/.github/workflows/auto_format.yml b/.github/workflows/auto_format.yml
index 46b33d3edf..66c559e796 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 '[email protected]'
- 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