-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
[ERROR] The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌ #1285
Comments
name: GitHub Pages Deploy
on:
push:
branches:
- "dev/en"
env:
VITE_APP_WALLETCONNECTION_PROJECT_ID: ${{ secrets.VITE_APP_WALLETCONNECTION_PROJECT_ID }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
- name: Install and bulld
run: npm i && npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy. I have the same error on v4.4.1 😢 |
I am also experiencing this issue for repository https://github.com/remarkablemark/parcel-jsx-dom-example:
Update: I figured out the issue. It seems like GitHub changed new repository default settings and made workflow permissions read-only by default. The fix was to add write permissions to the workflow: permissions:
contents: write |
@remarkablemark Thanks, your fix seems to work for me 🙏 |
Glad you got this resolved! |
- 💚 Remove deprecation warnings when running publish.yml: - set-output command is deprecated See: JamesIves/github-pages-deploy-action#1241 > Warning: The `set-output` command is deprecated and will be disabled > soon. Please upgrade to using Environment Files. For more information > https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands - Node.js 12 actions are deprecated > Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: JamesIves/github-pages-deploy-action@v4.2.5. > For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. - 💚 Add content write permission to publish.yml Github Action See: JamesIves/github-pages-deploy-action#1285
Fix git error, see JamesIves/github-pages-deploy-action#1285
Describe the bug
I have a github workflow that runs the deploy action whenever creating a PR against
main
branch. I noticed that when a contributor creates the PR (who is not admin/codeowner), the deploy action fails with this error - is that expected?The text was updated successfully, but these errors were encountered: