Skip to content

Commit

Permalink
ci: Fix passing branch names as reef
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Sep 11, 2024
1 parent f930e18 commit e15e8ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ jobs:
state="pending"
sha=${{ inputs.ref }}
if [ -z "${sha}" ]; then
sha=$(git rev-parse ${{ github.head_ref }})
sha=${{ github.head_ref }}
fi
if [ -z "${sha}" ]; then
sha=${{ github.sha }}
fi
sha=$(git rev-parse ${sha})
html_url=$(gh api \
-H "Accept: application/vnd.github+json" \
Expand Down Expand Up @@ -181,11 +182,12 @@ jobs:
sha=${{ inputs.ref }}
fi
if [ -z "${sha}" ]; then
sha=$(git rev-parse ${{ github.head_ref }})
sha=${{ github.head_ref }}
fi
if [ -z "${sha}" ]; then
sha=${{ github.sha }}
fi
sha=$(git rev-parse ${sha})
html_url=$(gh api \
-H "Accept: application/vnd.github+json" \
Expand Down

0 comments on commit e15e8ab

Please sign in to comment.