From 4a7d19c2fa9f5a53a151de910cdfd22ef136040a Mon Sep 17 00:00:00 2001 From: Patrick Creighton Date: Mon, 6 Nov 2023 13:34:19 -0800 Subject: [PATCH 1/2] Print out caller-ref --- .github/workflows/test_definitions.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test_definitions.yml b/.github/workflows/test_definitions.yml index d72a7d924..2009d80b5 100644 --- a/.github/workflows/test_definitions.yml +++ b/.github/workflows/test_definitions.yml @@ -51,6 +51,7 @@ jobs: id: workflows-ref run: | ref=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.gh-token }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/UBCSailbot/${{ inputs.repository }}/actions/runs/${{ github.run_id }} | jq -r '.referenced_workflows[0] | .ref') + echo "caller-ref=$ref" echo "caller-ref=$ref" >> $GITHUB_OUTPUT colcon-test: From 743a8f2ea8e75a0f50b233d5c73c90ac6ca001e5 Mon Sep 17 00:00:00 2001 From: Patrick Creighton Date: Mon, 6 Nov 2023 13:39:27 -0800 Subject: [PATCH 2/2] Print at end --- .github/workflows/test_definitions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_definitions.yml b/.github/workflows/test_definitions.yml index 2009d80b5..e037a7a5c 100644 --- a/.github/workflows/test_definitions.yml +++ b/.github/workflows/test_definitions.yml @@ -51,8 +51,8 @@ jobs: id: workflows-ref run: | ref=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.gh-token }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/UBCSailbot/${{ inputs.repository }}/actions/runs/${{ github.run_id }} | jq -r '.referenced_workflows[0] | .ref') - echo "caller-ref=$ref" echo "caller-ref=$ref" >> $GITHUB_OUTPUT + echo "ref=$ref" colcon-test: runs-on: ubuntu-latest