From db97fa719524d1939125f09c84ac4fb2681a773b Mon Sep 17 00:00:00 2001 From: balakrishna-deriv <56330681+balakrishna-deriv@users.noreply.github.com> Date: Mon, 5 Feb 2024 14:16:35 +0800 Subject: [PATCH 1/4] Update action.yml --- .github/actions/checkout/action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml index ddccf418b..af00ee9f0 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -43,13 +43,13 @@ runs: if git ls-remote --heads --quiet --exit-code https://${{ inputs.token }}@github.com/${{ inputs.repository }}.git ${{ inputs.ref }} then echo "::notice::Checkout: ${{ inputs.repository }} using ${{ inputs.ref }}" - echo "ref-exists=true" >> $GITHUB_OUTPUT + echo "::set-output name=ref-exists::true" # Use ::set-output for boolean output else echo "::notice::Checkout: ${{ inputs.repository }} does not have ref ${{ inputs.ref }} (fallback to ${{ inputs.alternate_ref }})" - echo "ref-exists=false" >> $GITHUB_OUTPUT + echo "::set-output name=ref-exists::false" # Use ::set-output for boolean output fi - - if: steps.repo.outputs.ref-exists == 'true' + - if: steps.repo.outputs.ref-exists uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 with: fetch-depth: ${{ inputs.fetch-depth }} @@ -58,7 +58,7 @@ runs: ref: ${{ inputs.ref }} token: ${{ inputs.token }} - - if: steps.repo.outputs.ref-exists == 'false' + - if: !steps.repo.outputs.ref-exists # Use ! for negation uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 with: fetch-depth: ${{ inputs.fetch-depth }} From d94fe63a22a3af82044b8bb81e69a4a326fb017d Mon Sep 17 00:00:00 2001 From: balakrishna-deriv <56330681+balakrishna-deriv@users.noreply.github.com> Date: Mon, 5 Feb 2024 14:17:45 +0800 Subject: [PATCH 2/4] Update .github/actions/checkout/action.yml --- .github/actions/checkout/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml index af00ee9f0..e7bd8e8a2 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -46,7 +46,7 @@ runs: echo "::set-output name=ref-exists::true" # Use ::set-output for boolean output else echo "::notice::Checkout: ${{ inputs.repository }} does not have ref ${{ inputs.ref }} (fallback to ${{ inputs.alternate_ref }})" - echo "::set-output name=ref-exists::false" # Use ::set-output for boolean output + echo "::set-output name=ref-exists::false" fi - if: steps.repo.outputs.ref-exists From 2c7dec970112a5b5a74b7a989fd1ee91e175bfe6 Mon Sep 17 00:00:00 2001 From: balakrishna-deriv <56330681+balakrishna-deriv@users.noreply.github.com> Date: Mon, 5 Feb 2024 14:17:51 +0800 Subject: [PATCH 3/4] Update .github/actions/checkout/action.yml --- .github/actions/checkout/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml index e7bd8e8a2..0da87398e 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -58,7 +58,7 @@ runs: ref: ${{ inputs.ref }} token: ${{ inputs.token }} - - if: !steps.repo.outputs.ref-exists # Use ! for negation + - if: !steps.repo.outputs.ref-exists uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 with: fetch-depth: ${{ inputs.fetch-depth }} From c6f7f8c45b6a95ef9233f3acd990acc7e8661193 Mon Sep 17 00:00:00 2001 From: balakrishna-deriv <56330681+balakrishna-deriv@users.noreply.github.com> Date: Mon, 5 Feb 2024 14:17:55 +0800 Subject: [PATCH 4/4] Update .github/actions/checkout/action.yml --- .github/actions/checkout/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml index 0da87398e..6434ba7c3 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -43,7 +43,7 @@ runs: if git ls-remote --heads --quiet --exit-code https://${{ inputs.token }}@github.com/${{ inputs.repository }}.git ${{ inputs.ref }} then echo "::notice::Checkout: ${{ inputs.repository }} using ${{ inputs.ref }}" - echo "::set-output name=ref-exists::true" # Use ::set-output for boolean output + echo "::set-output name=ref-exists::true" else echo "::notice::Checkout: ${{ inputs.repository }} does not have ref ${{ inputs.ref }} (fallback to ${{ inputs.alternate_ref }})" echo "::set-output name=ref-exists::false"