test-room-7 / action-update-file

Update (i.e. commit and push) files on GitHub
MIT License
40 stars 10 forks source link

Generic error message #12

Open darklight9811 opened 2 years ago

darklight9811 commented 2 years ago

I'm trying to commit a file but a generic error message is being thrown

image

I don't know if the issue is the file not being found, if the repo is not being found, the branch, etc.

Github action:

name: Update CONTRIBUTORS file

on:
  push:
    branches: [ development ]

jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - uses: minicli/action-contributors@v3
        name: "Update a projects CONTRIBUTORS file"
        env:
          CONTRIB_REPOSITORY: ${{ github.repository }}
          CONTRIB_OUTPUT_FILE: 'CONTRIBUTORS.md'

      - name: Commit changes
        uses: test-room-7/action-update-file@v1
        with:
          file-path: 'CONTRIBUTORS.md'
          commit-msg: '[actions] update contributors'
          github-token: ${{ secrets.WORKFLOW_TOKEN }}
alexesprit commented 2 years ago

Hi! Thank for for reporting the issue. Have you any public repository where this error can be reproduced? If no, could you build the one to investigate this?

shawaj commented 2 years ago

@alexesprit I'm getting the same issue here: https://github.com/NebraLtd/helium-og/blob/master/.github/workflows/update-files.yml

shawaj commented 2 years ago

@alexesprit scratch that, in my case I worked out the issue ... The account that opened the personal access token, I hadn't given write access to the repo

darklight9811 commented 2 years ago

@alexesprit https://github.com/acaijs/interfaces/runs/5003841017?check_suite_focus=true