-
Original title: Multiple different git errors in workflow which deploys to two repositories I'm encountering UPDATE: Previously, I was experiencing issues with the Production deployment in addition to issues with deployments to the separate dev environment, but now - after updating the action, the Production deployment is working. The dev environment deployment is still failing. The workflow had worked before, but all of the sudden, both deployments started failing. The production deployment most recently passed on September 18th and has started failing since then (until merging the new action update), with the error first occurring from an update to actions/checkout (from version 3.0.2 to version 3.1.0) as shown in the commit history here: https://github.com/jjliggett/CurrentTimeApp/commits/root UPDATE: Prior to the update of the action in jjliggett/CurrentTimeApp#67 (comment) , it was failing with the following error:
( https://github.com/jjliggett/CurrentTimeApp/actions/runs/3262192429/jobs/5617156506 ) From other discussions, I checked the Actions permissions for the CurrentTimeApp repository and the Workflow permissions are set to "Read and write permissions". In addition to that error, I am also encountering an issue with a dev environment deployment, as seen with this dependabot pull request that updates the JamesIves/github-pages-deploy-action to the new version 4.4.1: jjliggett/CurrentTimeApp#67 This failure also happened all of the sudden, without a change to the personal access token. As noted in that pull request, I tested with a new fine-grained token with Read and Write access to code, commit statuses, and pages, for the dev-env repository and this did not solve the issue. I then tested again later with another fine-grained token with Read and Write access to actions, code, commit statuses, environments, pages, pull requests, and workflows for the dev-env repository. This also did not solve the problem. This error is slightly different from the Production deployment error, specifically the following:
A more recent instance of this error can be found from this PR workflow: jjliggett/CurrentTimeApp#69 with the following workflow log: https://github.com/jjliggett/CurrentTimeApp/actions/runs/3457305907/jobs/5770658467 Does anyone have any other ideas for me to explore to address this error? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
From more troubleshooting, I have identified the issue. It was a syntax error within the GitHub workflow. Previously: - name: Publish application to GitHub Pages
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
with:
repository-name: jjliggett/CurrentTimeApp-dev-env
token: "${{ secrets.DEV_PAT_TOKEN }}"
branch: gh-pages
folder: release/wwwroot
git-config-name: jjliggett
git-config-email: 67353173+jjliggett@users.noreply.github.com
single-commit: true I made the following pull request which removes the quotes around the token secret and the workflow is now succeeding: After: - name: Publish application to GitHub Pages
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
with:
repository-name: jjliggett/CurrentTimeApp-dev-env
token: ${{ secrets.DEV_PAT_TOKEN }}
branch: gh-pages
folder: release/wwwroot
git-config-name: jjliggett
git-config-email: 67353173+jjliggett@users.noreply.github.com
single-commit: true This workflow was working with quotes around the token secret before. I'm not sure exactly why this broke, but it looks like we cannot use quotes around the tokens in the workflow now. |
Beta Was this translation helpful? Give feedback.
From more troubleshooting, I have identified the issue. It was a syntax error within the GitHub workflow.
Previously:
I made the following pull request which removes the quotes around the token secret and the workflow is now succeeding: