From 6fe24d15bb5c4624a99655ef655619c2631d8d92 Mon Sep 17 00:00:00 2001 From: Nick Rimmer Date: Thu, 14 Nov 2024 21:31:07 +0100 Subject: [PATCH] workflow experiments --- .github/workflows/pr-scheduler.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-scheduler.yml b/.github/workflows/pr-scheduler.yml index 5cb87d1..16c06f5 100644 --- a/.github/workflows/pr-scheduler.yml +++ b/.github/workflows/pr-scheduler.yml @@ -55,8 +55,18 @@ jobs: prNumbers.push(pr.number); } } - core.setOutput("prs_to_validate", JSON.stringify(prNumbers)); console.log(`PRs to validate: ${JSON.stringify(prNumbers)}`); + core.exportVariable('VALID_PR_NUMBERS', JSON.stringify(prNumbers)); + + - name: Set Output for PRs to Validate + id: set_output_prs + run: | + echo "Setting prs_to_validate output" + echo "::set-output name=prs_to_validate::${VALID_PR_NUMBERS}" + + - name: Log Output for prs_to_validate + run: | + echo "prs_to_validate: ${{ steps.set_output_prs.outputs.prs_to_validate }}" # Log output to confirm value trigger_validation: needs: check_prs