test-room-7 / action-update-file

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

Error: Resource not accessible by integration #10

Closed AkshayNaik033 closed 3 years ago

AkshayNaik033 commented 3 years ago
      - name: Update resources
        uses: test-room-7/action-update-file@v1.5.0
        with:
          file-path: version.properties
          branch : git-actions/versioning
          commit-msg: Update resources
          github-token: ${{ secrets.GITHUB_TOKEN }}

I am getting the following Error on running the above action Resource not accessible by integration

Info: version.properties is the file that gets updated after the build is performed in the previous step. The requirement is to update this file in the branch. This action takes place on push to this branch.

AkshayNaik033 commented 3 years ago

I had to set write permission

permission:
  contents: write