diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate-pull-request.yml similarity index 72% rename from .github/workflows/autoupdate.yml rename to .github/workflows/autoupdate-pull-request.yml index 294f6791..9a263549 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate-pull-request.yml @@ -3,9 +3,17 @@ on: push: branches: - master + pull_request: + types: [ labeled ] + branches: + - master jobs: autoupdate: name: autoupdate + if: | + github.event_name == 'pull_request' && + github.event.action == 'labeled' && + github.event.label.name == 'autoupdate' runs-on: ubuntu-22.04 steps: - uses: docker://chinthakagodawita/autoupdate-action:v1