Browse Source

CI: Fix GitHub API URL for fetching the SHA of latest commit.

Qi Xiao 1 year ago
parent
commit
3d7b20d4c0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .cirrus.yml
  2. 1 1
      .github/workflows/check_website.yml

+ 1 - 1
.cirrus.yml

@@ -107,7 +107,7 @@ check_binary_checksums_task:
       fi
     done
     if test $ret != 0; then
-      latest_sha=$(curl -sS -H "Authorization: token $GITHUB_TOKEN" -H 'Accept: application/vnd.github.VERSION.sha' https://api.github.com/repos/elves/elvish/commits/master/)
+      latest_sha=$(curl -sS -H "Authorization: token $GITHUB_TOKEN" -H 'Accept: application/vnd.github.VERSION.sha' https://api.github.com/repos/elves/elvish/commits/master)
       if test "$CIRRUS_CHANGE_IN_REPO" != "$latest_sha"; then
         echo "$CIRRUS_CHANGE_IN_REPO != $latest_sha"
         echo "Ignoring the mismatch since there is a newer commit now"

+ 1 - 1
.github/workflows/check_website.yml

@@ -96,7 +96,7 @@ jobs:
           fi
         done
         if test $ret != 0; then
-          latest_sha=$(curl -sS -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'Accept: application/vnd.github.VERSION.sha' https://api.github.com/repos/elves/elvish/commits/master/)
+          latest_sha=$(curl -sS -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'Accept: application/vnd.github.VERSION.sha' https://api.github.com/repos/elves/elvish/commits/master)
           if test ${{ github.sha }} != "$latest_sha"; then
             echo "Ignoring the mismatch since there is a newer commit now"
             ret=0