diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b243daa..02ced06f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,11 @@ on: branches: - main - 'release-*' + types: [labeled, synchronize] jobs: build: + if: contains(github.event.pull_request.labels.*.name, 'CI-Run') runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 31aab75b..7780f211 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -7,8 +7,10 @@ on: pull_request: branches: - main + types: [labeled, synchronize] jobs: call-workflow-passing-data: name: Documentation + if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'CI-Run') uses: ROCm/rocm-docs-core/.github/workflows/linting.yml@develop diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index b62951eb..a92c5932 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -5,9 +5,11 @@ on: branches: - main - 'release-*' + types: [labeled, synchronize] jobs: unit-test: + if: contains(github.event.pull_request.labels.*.name, 'CI-Run') runs-on: ubuntu-latest steps: - name: Checkout code