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.92k stars 224 forks source link

Standard use stops workflow after committing (Waiting for status to be reported) #244

Closed altherlex closed 1 year ago

altherlex commented 1 year ago

git-auto-commit Version

v4

Machine Type

Ubuntu (eg. ubuntu-latest)

Bug description

After committing, the other jobs get a Expected — Waiting for status to be reported and the workflow gets stuck

Steps to reproduce

standard use re-triggers workflow

Tried solutions

No response

Example Workflow

name: CI

on:
  pull_request:
    branches: [ main ]
    types: [opened, synchronize, reopened, ready_for_review]

jobs:
  ...
  versioning:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    if: github.event.pull_request.draft == false

    steps:
      - uses: actions/checkout@v3
        with:
          ref: ${{ github.head_ref }}

      - name: Bump version
        run: |
          echo 'my_tag' > VERSION

      - name: Update VERSION file
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          file_pattern: 'VERSION'
          commit_message: 'Update VERSION'


### Relevant log output

_No response_
stefanzweifel commented 1 year ago

This seems to be a general issue with GitHub Actions and not directly with git-auto-commit. It seems the "Expected — Waiting for status to be reported" message comes from protected branch rules.

According to this Stack Overflow answer, the issue can be resolved by using a personal access token or by closing an reopening the pull request (obviously not a great solution).

While searching through the issues in this repo, I found that the issue last time was resolved by using a personal access token too: https://github.com/stefanzweifel/git-auto-commit-action/issues/163#issuecomment-869004916

Related Links