From 08f5ed20bd0208efaca7c87dd4627c4422350ebd Mon Sep 17 00:00:00 2001 From: "Daniele E. Domenichelli" Date: Fri, 12 Mar 2021 10:32:40 +0100 Subject: [PATCH 1/2] CI: Fix typo --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34fc3548981..b939c731912 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: environment: ${{ steps.select.outputs.environment }} sha: ${{ steps.select.outputs.sha }} head_ref: ${{ steps.select.outputs.head_ref }} - head_ref: ${{ steps.select.outputs.base_ref }} + base_ref: ${{ steps.select.outputs.base_ref }} pr_number: ${{ steps.select.outputs.pr_number }} yarp_version: ${{ steps.select.outputs.yarp_version }} steps: From ac1024fa4967d50332e231e66a3c73fe91234e08 Mon Sep 17 00:00:00 2001 From: "Daniele E. Domenichelli" Date: Fri, 12 Mar 2021 10:33:50 +0100 Subject: [PATCH 2/2] CI: Debug --- .github/workflows/ci-debug.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci-debug.yml b/.github/workflows/ci-debug.yml index 3a9bb91f22c..22cc57de1aa 100644 --- a/.github/workflows/ci-debug.yml +++ b/.github/workflows/ci-debug.yml @@ -20,6 +20,9 @@ jobs: ref: ${{ steps.select.outputs.ref }} environment: ${{ steps.select.outputs.environment }} sha: ${{ steps.select.outputs.sha }} + head_ref: ${{ steps.select.outputs.head_ref }} + base_ref: ${{ steps.select.outputs.base_ref }} + pr_number: ${{ steps.select.outputs.pr_number }} yarp_version: ${{ steps.select.outputs.yarp_version }} steps: - name: "Set output variables" @@ -38,6 +41,9 @@ jobs: fi if [[ "$GITHUB_EVENT_NAME" = "pull_request" || "$GITHUB_EVENT_NAME" == "pull_request_target" ]]; then echo "::set-output name=sha::${{ github.event.pull_request.head.sha }}" + echo "::set-output name=head_ref::${GITHUB_HEAD_REF}" + echo "::set-output name=base_ref::${GITHUB_BASE_REF}" + echo "::set-output name=pr_number::$(cat $GITHUB_EVENT_PATH | jq .number)" else echo "::set-output name=sha::${{ github.sha }}" fi @@ -54,6 +60,9 @@ jobs: REF: ${{ steps.select.outputs.ref }} ENVIRONMENT: ${{ steps.select.outputs.environment }} SHA: ${{ steps.select.outputs.sha }} + HEAD_REF: ${{ steps.select.outputs.head_ref }} + BASE_REF: ${{ steps.select.outputs.base_ref }} + PR_NUMBER: ${{ steps.select.outputs.pr_number }} YARP_VERSION: ${{ steps.select.outputs.yarp_version }} run: | echo "TIMESTAMP = ${TIMESTAMP}" @@ -61,6 +70,9 @@ jobs: echo "REF = ${REF}" echo "ENVIRONMENT = ${ENVIRONMENT}" echo "SHA = ${SHA}" + echo "HEAD_REF = ${HEAD_REF}" + echo "BASE_REF = ${BASE_REF}" + echo "PR_NUMBER = ${PR_NUMBER}" echo "YARP_VERSION = ${YARP_VERSION}" - name: "Print Environment"