Skip to content

Commit

Permalink
Updates auto_format to work on forks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Torantulino committed Apr 2, 2023
1 parent b4685f6 commit f930f92
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/auto_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit f930f92

Please sign in to comment.