diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2022-10-18 08:30:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 08:30:32 -0400 |
commit | bef28e9dd6f2087a02444848e6e6dea1a8fe5046 (patch) | |
tree | 81eb149b62c506786a2f52e54b753186802e0eac | |
parent | 172e049862b1eb8391bb86eb62fe483c3ef8a203 (diff) |
Use PR label to trigger full packaging CI instead of PR body contents. (#13839)
-rw-r--r-- | .github/workflows/packaging.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index b39d960bf7..7a08428483 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -3,9 +3,13 @@ name: Packages on: pull_request: + types: + - opened + - reopened + - labeled + - synchronize branches: - master - - develop push: branches: - master @@ -41,16 +45,12 @@ jobs: - name: Read build matrix id: set-matrix shell: python3 {0} - env: - PR_BODY: "${{ github.event.pull_request.body }}" run: | from ruamel.yaml import YAML import json import re import os - FULL_CI_REGEX = '/actions run full ci' ALWAYS_RUN_ARCHES = ["amd64", "x86_64"] - PR_BODY = os.environ['PR_BODY'] yaml = YAML(typ='safe') entries = list() run_limited = False @@ -58,7 +58,7 @@ jobs: with open('.github/data/distros.yml') as f: data = yaml.load(f) - if "${{ github.event_name }}" == "pull_request" and re.search(FULL_CI_REGEX, PR_BODY, re.I) is None: + if "${{ github.event_name }}" == "pull_request" and "${{ contains(github.event.pull_request.labels.*.name, 'ci/packaging') }}" != "true": run_limited = True for i, v in enumerate(data['include']): |