We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e3ad2a commit 2ed9a3fCopy full SHA for 2ed9a3f
.github/workflows/test-examples.yml
@@ -41,8 +41,7 @@ jobs:
41
if: github.event_name == 'pull_request'
42
run: |
43
git remote update
44
- git checkout ${{ github.head_ref }}
45
- if [ $? -eq 0 ]; then
+ if git checkout ${{ github.head_ref }}; then
46
echo "Using branch ${{github.head_ref}}"
47
echo "found-branch=1\n" >> $GITHUB_OUTPUT
48
else
@@ -56,8 +55,7 @@ jobs:
56
55
if: github.event_name == 'pull_request' && steps.check-head-ref == 0
57
58
59
- git checkout ${{ github.base_ref }}
60
+ if git checkout ${{ github.base_ref }}; then
61
echo "Using branch ${{github.base_ref}}"
62
63
0 commit comments