diff --git a/.github/workflows/capabilities-compatibility.yml b/.github/workflows/capabilities-compatibility.yml index 1e20e2c..8091719 100644 --- a/.github/workflows/capabilities-compatibility.yml +++ b/.github/workflows/capabilities-compatibility.yml @@ -30,11 +30,13 @@ jobs: shell: bash - name: Determine base ref + env: + PR_BRANCH: ${{ github.head_ref }} if: steps.check_changes.outputs.any_changed == 'true' id: vars run: | echo "BASE_REF=${{ github.event.pull_request.base.ref }}" >> $GITHUB_OUTPUT - echo "PR_REF=${{ github.head_ref }}" >> $GITHUB_OUTPUT + echo "PR_REF=$PR_BRANCH" >> $GITHUB_OUTPUT - name: Checkout base branch file if: steps.check_changes.outputs.any_changed == 'true' @@ -51,4 +53,4 @@ jobs: if: steps.check_changes.outputs.any_changed == 'true' run: | node ./.github/scripts/check-capabilities-compatibility.js --baseFile=capabilities.base.json --prFile=capabilities.json || exit 1 - shell: bash + shell: bash \ No newline at end of file