File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 61
61
git add .
62
62
# commit without diff will throw an error. `git diff --exit-code` can avoid such error.
63
63
git diff --staged --exit-code || git commit -m "Empty spec repo."
64
- git push
64
+ # Attempt to push. If it fails, print a detailed error message and exit.
65
+ git push || {
66
+ echo "--------------------------------------------------------------------------------"
67
+ echo "ERROR: Failed to push to Firebase/SpecsTesting."
68
+ echo "This is likely due to an expired Personal Access Token (PAT)."
69
+ echo "Please take the following steps to resolve this:"
70
+ echo "1. Refresh the OSS bot's scoped access token for the Firebase/SpecsTesting repo."
71
+ echo " This can be done in the OSS bot's GitHub account settings. Ensure the token "
72
+ echo " has the 'public_repo' scope."
73
+ echo "2. Update the 'PRERELEASE_TESTING_PAT' secret in this repo's settings."
74
+ echo " (https://github.com/Firebase/firebase-ios-sdk/settings/secrets/actions)"
75
+ echo "--------------------------------------------------------------------------------"
76
+ exit 1
77
+ }
65
78
- name : Clean Artifacts
66
79
if : ${{ always() }}
67
80
run : |
Original file line number Diff line number Diff line change 58
58
git add .
59
59
# commit without diff will throw an error. `git diff --exit-code` can avoid such error.
60
60
git diff --staged --exit-code || git commit -m "Empty spec repo."
61
- git push
61
+ # Attempt to push. If it fails, print a detailed error message and exit.
62
+ git push || {
63
+ echo "--------------------------------------------------------------------------------"
64
+ echo "ERROR: Failed to push to Firebase/SpecsReleasing."
65
+ echo "This is likely due to an expired Personal Access Token (PAT)."
66
+ echo "Please take the following steps to resolve this:"
67
+ echo "1. Refresh the OSS bot's scoped access token for the Firebase/SpecsReleasing repo."
68
+ echo " This can be done in the OSS bot's GitHub account settings. Ensure the token "
69
+ echo " has the 'public_repo' scope."
70
+ echo "2. Update the 'RELEASE_TESTING_PAT' secret in this repo's settings."
71
+ echo " (https://github.com/Firebase/firebase-ios-sdk/settings/secrets/actions)"
72
+ echo "--------------------------------------------------------------------------------"
73
+ exit 1
74
+ }
62
75
- name : Clean Artifacts
63
76
if : ${{ always() }}
64
77
run : |
You can’t perform that action at this time.
0 commit comments