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 ea3bc5a commit 958bfb0Copy full SHA for 958bfb0
1 file changed
.github/workflows/kernel-beta-update.yml
@@ -71,9 +71,14 @@ jobs:
71
exit 0
72
fi
73
api="https://api.github.com/repos/$REPO/contents/extra/git_hash"
74
- gh="-H Authorization:Bearer $GH_TOKEN -H Accept:application/vnd.github.raw"
75
- before=$(curl -fsSL $gh "$api?ref=$BEFORE" | tr -d '[:space:]')
76
- after=$(curl -fsSL $gh "$api?ref=$AFTER" | tr -d '[:space:]')
+ fetch() {
+ curl -fsSL \
+ -H "Authorization: Bearer $GH_TOKEN" \
77
+ -H "Accept: application/vnd.github.raw" \
78
+ "$api?ref=$1" | tr -d '[:space:]'
79
+ }
80
+ before=$(fetch "$BEFORE")
81
+ after=$(fetch "$AFTER")
82
echo "before='$before' after='$after'"
83
if [ -z "$before" ] || [ -z "$after" ]; then
84
echo "could not determine extra/git_hash; skipping (re-run manually if needed)"
0 commit comments