summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2022-03-16 07:34:09 -0400
committerGitHub <noreply@github.com>2022-03-16 07:34:09 -0400
commite237aae7bb8b39a5a276025de1525be4499b1fc1 (patch)
tree8dd2a2e17f1375a44a8b72fc6168cd2f1c8ff7d5 /.github
parentb09acd353aa43bb19cfaba1f7d0b4af757079202 (diff)
Sanely handle very large PR bodies in package build CI matrix generation. (#12218)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/packaging.yml6
1 files changed, 2 insertions, 4 deletions
diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml
index c83f8a1751..2fdd325fb1 100644
--- a/.github/workflows/packaging.yml
+++ b/.github/workflows/packaging.yml
@@ -41,15 +41,13 @@ 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 os
import re
FULL_CI_REGEX = '/actions run full ci'
ALWAYS_RUN_ARCHES = ["amd64"]
+ PR_BODY = """${{ github.event.pull_request.body }}"""
yaml = YAML(typ='safe')
entries = list()
run_limited = False
@@ -57,7 +55,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, os.environ["PR_BODY"], re.I) is None:
+ if "${{ github.event_name }}" == "pull_request" and re.search(FULL_CI_REGEX, PR_BODY, re.I) is None:
run_limited = True
for i, v in enumerate(data['include']):