File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ runs:
43
43
if git ls-remote --heads --quiet --exit-code https://${{ inputs.token }}@github.com/${{ inputs.repository }}.git ${{ inputs.ref }}
44
44
then
45
45
echo "::notice::Checkout: ${{ inputs.repository }} using ${{ inputs.ref }}"
46
- echo "ref-exists= true" >> $GITHUB_OUTPUT
46
+ echo "::set-output name= ref-exists:: true" # Use ::set-output for boolean output
47
47
else
48
48
echo "::notice::Checkout: ${{ inputs.repository }} does not have ref ${{ inputs.ref }} (fallback to ${{ inputs.alternate_ref }})"
49
- echo "ref-exists= false" >> $GITHUB_OUTPUT
49
+ echo "::set-output name= ref-exists:: false" # Use ::set-output for boolean output
50
50
fi
51
51
52
- - if : steps.repo.outputs.ref-exists == 'true'
52
+ - if : steps.repo.outputs.ref-exists
53
53
uses : actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
54
54
with :
55
55
fetch-depth : ${{ inputs.fetch-depth }}
58
58
ref : ${{ inputs.ref }}
59
59
token : ${{ inputs.token }}
60
60
61
- - if : steps.repo.outputs.ref-exists == 'false'
61
+ - if : ! steps.repo.outputs.ref-exists # Use ! for negation
62
62
uses : actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
63
63
with :
64
64
fetch-depth : ${{ inputs.fetch-depth }}
You can’t perform that action at this time.
0 commit comments