File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 3232 echo "Releasing from main or dev branch is not permitted, please select a valid release branch."
3333 exit 1
3434
35+ - name : Check GitHub Token Validity
36+ run : |
37+ echo "-- Validating GitHub Token"
38+ status_code=$(curl -o /dev/null -s -w "%{http_code}" -H "Authorization: token ${{ secrets.GH_RELEASE }}" https://api.github.com/user)
39+ if [ "$status_code" -ne 200 ]; then
40+ echo "Error: GitHub token is invalid or expired. Please update your token in secrets."
41+ echo "Instructions can be found at: https://github.com/DeepRank/deeprank2/blob/main/README.dev.md#updating-the-token"
42+ exit 1
43+ else
44+ echo "GitHub token is valid."
45+ fi
46+
3547 - name : Checkout repository
3648 uses : actions/checkout@v4
3749 with :
You can’t perform that action at this time.
0 commit comments