From 3c8b26fa544989460698b1ac666a6b19c822a82c Mon Sep 17 00:00:00 2001 From: Ines Gimeno Molina <142247121+ines-gimeno-molina@users.noreply.github.com> Date: Fri, 3 May 2024 15:46:09 +0100 Subject: [PATCH] update to new labels --- .github/workflows/label-new-issues.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/label-new-issues.yml b/.github/workflows/label-new-issues.yml index e5df2c2..bc9f5d5 100644 --- a/.github/workflows/label-new-issues.yml +++ b/.github/workflows/label-new-issues.yml @@ -24,25 +24,17 @@ jobs: CONDITIONS_PATH="${ROOT_PATH}/conditions.json" echo "$CONDITIONS_PATH" echo "::set-output name=conditions_path::$CONDITIONS_PATH" - - - name: Read conditions from JSON - id: read-conditions - run: | - CONDITIONS=$(cat ${CONDITIONS_PATH}) - echo "::set-output name=conditions::$CONDITIONS" - env: - CONDITIONS_PATH: ${{ steps.get-conditions-path.outputs.conditions_path }} - name: Determine label based on condition id: determine-label run: | label_out=$(jq -r --arg issueTitle "$ISSUE_TITLE" '.[] | select(.program == $issueTitle) | .label' $CONDITIONS_PATH) echo "Label: $label_out" + echo "::set-output name=label::$label_out" env: CONDITIONS_PATH: ${{ steps.get-conditions-path.outputs.conditions_path }} ISSUE_TITLE: ${{ github.event.issue.title }} - CONDITIONS: ${{ steps.read-conditions.outputs.conditions }} - + - name: Print check run: echo "There is an issue containing the word testing" @@ -52,7 +44,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} NUMBER: ${{ github.event.issue.number }} - LABELS: test + LABELS: ${{ steps.determine-label.outputs.label }} - name: Set Branch Name id: set-branch-name