stefanzweifel / git-auto-commit-action

Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.
MIT License
1.97k stars 226 forks source link

fatal: Not a git repository #222

Closed eeliu closed 2 years ago

eeliu commented 2 years ago

Version of the Action v4.x.x

Describe the bug

Commit nothing !

Screenshots

image

Used Workflow

    runs-on: ubuntu-latest
    container: ghcr.io/pinpoint-apm/pinpoint-c-agent/golang-build-env-1.16:latest
    needs: go16
    if: github.ref == 'refs/heads/master'
    steps:
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.head_ref }}
      - name: update go mod under libs
        run: |
          cd libs
          for dir in * ; do cd  $dir; go get github.com/pinpoint-apm/go-aop-agent@${{ github.sha }}; cd ..; done
      - uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: update libs module to the latest commit

Action : https://github.com/pinpoint-apm/go-aop-agent/runs/6566178919?check_suite_focus=true

eeliu commented 2 years ago

I found the reason

 runs-on: ubuntu-latest
  container: ghcr.io/pinpoint-apm/pinpoint-c-agent/golang-build-env-1.16:latest