-
Select Topic AreaQuestion BodyI cannot get past this error:
See also: stefanzweifel/git-auto-commit-action#347 I have created a variety of PAT types, none of them work: My settings allow for using a PAT in my organization: I use the PAT when I checkout the repo: jobs:
deploy:
name: Deploy (sigpwny.com)
runs-on: ubuntu-latest
permissions:
contents: write
deployments: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
token: ${{ secrets.WORKFLOW_PAT }}
submodules: true
fetch-depth: 0 I then try many different ways of forcing it to use the PAT: - name: Save scheduled discord pings
if: github.ref_name == github.event.repository.default_branch
env:
WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }}
GITHUB_TOKEN: ${{ secrets.WORKFLOW_PAT }}
run: |
git remote set-url origin "https://${{ secrets.WORKFLOW_PAT }}@github.com/sigpwny/websites.git/"
git config user.name sigpwny-uiuc
git config user.email [email protected]
git add .github
git commit -m "chore: update workflow schedule"
git push origin main What is going on? |
Beta Was this translation helpful? Give feedback.
Answered by
reteps
Oct 4, 2024
Replies: 1 comment
-
Ok, I found my issue. I had a composite action between the points in which I commit and check out, that did another checkout.
failed. I removed the checkout from my composite action and now it succeeds |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
reteps
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, I found my issue. I had a composite action between the points in which I commit and check out, that did another checkout.
failed. I removed the checkout from my composite action and now it succeeds