From d7ad7e314dcf91c33fc5b06b0b41bd5f3267ef8d Mon Sep 17 00:00:00 2001 From: ahtesham-quraish Date: Fri, 31 Mar 2023 15:18:15 +0500 Subject: [PATCH] fix: add new flag in autoupdate action trigger autoupdate workflow when autoupdate label is added VAN-1349 --- .../{autoupdate.yml => autoupdate-pull-request.yml} | 8 ++++++++ 1 file changed, 8 insertions(+) rename .github/workflows/{autoupdate.yml => autoupdate-pull-request.yml} (72%) 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