Skip to content

Commit

Permalink
ci: Use head ref for status reports
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Sep 7, 2024
1 parent ada93dd commit acdd3c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ jobs:
run: |
# Check status of this workflow
state="pending"
sha=${{ github.sha }}
sha=$(git rev-parse ${{ github.head_ref }})
if [ -z "${sha}" ]; then
sha=${{ github.sha }}
fi
html_url=$(gh api \
-H "Accept: application/vnd.github+json" \
Expand Down Expand Up @@ -169,6 +172,9 @@ jobs:
fi
sha=${{ steps.commit.outputs.sha }}
if [ -z "${sha}" ]; then
sha=$(git rev-parse ${{ github.head_ref }})
fi
if [ -z "${sha}" ]; then
sha=${{ github.sha }}
fi
Expand Down

0 comments on commit acdd3c7

Please sign in to comment.