From 4a6d5cba8f92837181c19cc23af919b96d3e43b2 Mon Sep 17 00:00:00 2001 From: Sam Sneddon Date: Mon, 16 Sep 2024 16:21:47 -0700 Subject: [PATCH] Fix check-workflow-run to write its output correctly --- .github/workflows/check-workflow-run.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-workflow-run.yml b/.github/workflows/check-workflow-run.yml index 387c3065799b25..4b7e6575db6d26 100644 --- a/.github/workflows/check-workflow-run.yml +++ b/.github/workflows/check-workflow-run.yml @@ -21,7 +21,7 @@ jobs: permissions: actions: read outputs: - output: ${{ steps.check.outputs.test }} + output: ${{ steps.check.outputs.updated-refs }} steps: - name: Checkout uses: actions/checkout@v4 @@ -36,8 +36,12 @@ jobs: run-id: ${{ github.event.workflow_run.id }} github-token: ${{ secrets.GITHUB_TOKEN }} - id: check - run: |- - python3 tools/ci/check_for_updated_refs.py >> "$GITHUB_OUTPUT" + run: | + { + echo 'updated-refs<> "$GITHUB_OUTPUT" env: GIT_PUSH_OUTPUT: ${{ runner.temp }}/git-push-output/git-push-output.txt REFS: ${{ inputs.check-refs }}