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

Facing issues while pushing to master #71

Open
yrsurya opened this issue Dec 9, 2020 · 5 comments
Open

Facing issues while pushing to master #71

yrsurya opened this issue Dec 9, 2020 · 5 comments

Comments

@yrsurya
Copy link

yrsurya commented Dec 9, 2020

! [remote rejected] master -> master (refusing to allow a GitHub App to create or update workflow .github/workflows/build.yml without workflows permission)

using PAT keys where enabled workflow but still seeing this issue
Any Help would be appreciated

@ad-m
Copy link
Owner

ad-m commented Dec 9, 2020

Please provide your workflow file.

@yrsurya
Copy link
Author

yrsurya commented Dec 9, 2020


on:
  push:
    branches: [master]

jobs:
  setup-repo-from-template:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2-beta
        with: { node-version: '14', registry-url: `'xxxxx'` }
      - env: { NODE_AUTH_TOKEN: "${{ secrets.JFROG_NPM_PUBLISH_AUTH }}" }
        run: chmod a+x ./init.sh && ./init.sh
      - name: Commit files
        run: |
          git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
          git config --local user.name "$GITHUB_ACTOR"
          git add .
          git status
          git commit -a -m "Initialize new repository from template"
          git push https://${{ secrets.GH_TOKEN_TEST }}@github.com/org/repoi.git
      - name: Push changes
        uses: ad-m/github-push-action@master
        with:
          github_token: ${{ secrets.GH_TOKEN_TEST }}
          branch: ${{ github.ref }}

@ad-m
Copy link
Owner

ad-m commented Dec 9, 2020

Let's try:


on:
  push:
    branches: [master]

jobs:
  setup-repo-from-template:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-node@v2-beta
        with: { node-version: '14', registry-url: `'xxxxx'` }
      - env: { NODE_AUTH_TOKEN: "${{ secrets.JFROG_NPM_PUBLISH_AUTH }}" }
        run: chmod a+x ./init.sh && ./init.sh
      - name: Commit files
        run: |
          git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
          git config --local user.name "$GITHUB_ACTOR"
          git add .
          git status
          git commit -a -m "Initialize new repository from template"
          git push https://${{ secrets.GH_TOKEN_TEST }}@github.com/org/repoi.git
      - name: Push changes
        uses: ad-m/github-push-action@master
        with:
          github_token: ${{ secrets.GH_TOKEN_TEST }}
          branch: ${{ github.ref }}

@yrsurya
Copy link
Author

yrsurya commented Dec 9, 2020

Error: Process completed with exit code 128.

Got this error while git push

@EleanorHaproff
Copy link

EleanorHaproff commented Dec 16, 2020

I just ran into this issue (not on master specifically) and changed the last line branch: ${{ github.ref }} to branch: ${{ github.head_ref }} and it fixed it

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

No branches or pull requests

3 participants