From 53607db36bff3570d5d91018b3a7f297a7612b83 Mon Sep 17 00:00:00 2001 From: Robin Leroy Date: Mon, 18 Dec 2023 12:50:12 +0100 Subject: [PATCH] draft --- .github/workflows/pipeline.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 3cbc7623f..a326bf35e 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -44,8 +44,29 @@ jobs: for label in labels: if label['name'].startswith('pipeline-'): print("Labeled", label) + with open(os.environ['GITHUB_OUTPUT'], 'r') as f: + print("pipeline-label=" + label['name'], file=f) exit(0) - print("::error file=unicodetools/data/ucd/dev/UnicodeData.txt,title=Missing pipeline label::PRs for character additions must have a pipeline label") + print("::error title=Missing pipeline label::PRs for character additions must have a pipeline label.") exit(1) EOF + draft-unless-approved: + needs: labels-for-repertoire-changes + if: needs.labels-for-repertoire-changes.outputs.pipeline-label != 'pipeline-16.0' + name: Draft unless approved + runs-on: ubuntu-latest + steps: + - env: + PIPELINE_LABEL: ${{needs.labels-for-repertoire-changes.outputs.pipeline-label}} + run: | + python3 <