Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update workflow syntax to fix dev env deployment #75

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

jjliggett
Copy link
Owner

This is a workflow syntax update for the error discovered here: #67

Previously, the dev environment deployment was failing with the following error:

Checking if there are files to commit…
/usr/bin/git add --all .
/usr/bin/git checkout -b github-pages-deploy-action/laftxo8zq
Switched to a new branch 'github-pages-deploy-action/laftxo8zq'
/usr/bin/git commit -m Deploying to gh-pages from @ jjliggett/CurrentTimeApp@7a96b4233d[67](https://github.com/jjliggett/CurrentTimeApp/actions/runs/3457305907/jobs/5770658467#step:6:68)a43f840b142f8fb40c12dbe3dd17 🚀 --quiet --no-verify
Force-pushing changes...
/usr/bin/git push --force ***github.com/jjliggett/CurrentTimeApp-dev-env.git github-pages-deploy-action/laftxo8zq:gh-pages
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/jjliggett/CurrentTimeApp-dev-env.git/'
Running post deployment cleanup jobs… 🗑️
/usr/bin/git checkout -B github-pages-deploy-action/laftxo8zq
Reset branch 'github-pages-deploy-action/laftxo8zq'
/usr/bin/chmod -R +rw github-pages-deploy-action-temp-deployment-folder
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
Notice: Deployment failed! ❌

( https://github.com/jjliggett/CurrentTimeApp/actions/runs/3457305907/jobs/5770658467 - #69 )

This error appears to be from the token secret being within quotes. This previously worked, but it no longer works.

I tested this change in this PR with the manual workflow dispatch and it worked:

image

( https://github.com/jjliggett/CurrentTimeApp/actions/runs/3457663380 )

@jjliggett jjliggett self-assigned this Nov 14, 2022
@jjliggett jjliggett temporarily deployed to development November 14, 2022 01:00 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant