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 32
32
echo "Releasing from main or dev branch is not permitted, please select a valid release branch."
33
33
exit 1
34
34
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
+
35
47
- name : Checkout repository
36
48
uses : actions/checkout@v4
37
49
with :
You can’t perform that action at this time.
0 commit comments