From bef28e9dd6f2087a02444848e6e6dea1a8fe5046 Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" Date: Tue, 18 Oct 2022 08:30:32 -0400 Subject: Use PR label to trigger full packaging CI instead of PR body contents. (#13839) --- .github/workflows/packaging.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.github') 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']): -- cgit v1.2.3