You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* allow any target branch to sync with upstream branch of the same name
* minimize the number of runners
* only run create certs if a build is planned
* add nice error message if GH_PAT is invalid
echo "::error::Unable to connect to GitHub using the GH_PAT secret. Verify that it is set correctly (including the 'ghp_' or 'github_pat_' prefix) and try again."
62
+
else
63
+
echo "::error::Unable to connect to GitHub using the GH_PAT secret. Verify that the token exists and has not expired at https://github.com/settings/tokens. If necessary, regenerate or create a new token (and update the secret), then try again."
64
+
fi
65
+
elif [[ $scopes =~ workflow ]]; then
66
+
echo "The GH_PAT secret has repo and workflow permissions."
67
+
echo "has_permission=true" >> $GITHUB_OUTPUT
68
+
elif [[ $scopes =~ repo ]]; then
69
+
echo "The GH_PAT secret has repo (but not workflow) permissions."
70
+
elif [ $provides_scopes ]; then
71
+
failed=true
72
+
if [ -z "$scopes" ]; then
73
+
echo "The GH_PAT secret is valid and can be used to connect to GitHub, but it does not provide any permission scopes."
74
+
else
75
+
echo "The GH_PAT secret is valid and can be used to connect to GitHub, but it only provides the following permission scopes: $scopes"
76
+
fi
77
+
echo "::error::The GH_PAT secret is lacking at least the 'repo' permission scope required to access the Match-Secrets repository. Update the token permissions at https://github.com/settings/tokens (to include the 'repo' and 'workflow' scopes) and try again."
78
+
else
79
+
echo "The GH_PAT secret is valid and can be used to connect to GitHub, but it does not provide inspectable scopes. Assuming that the 'repo' and 'workflow' permission scopes required to access the Match-Secrets repository and perform automations are present."
80
+
echo "has_permission=true" >> $GITHUB_OUTPUT
81
+
fi
82
+
fi
83
+
84
+
# Exit unsuccessfully if secret validation failed.
echo "You have not yet configured the scheduled sync and build for LoopFollow's browser build." >> $GITHUB_STEP_SUMMARY
142
135
echo "Synchronizing your fork of <code>LoopFollow</code> with the upstream repository <code>loopandlearn/LoopFollow</code> will be skipped." >> $GITHUB_STEP_SUMMARY
143
136
echo "If you want to enable automatic builds and updates for your LoopFollow, please follow the instructions \
144
137
under the following path <code>LoopFollow/fastlane/testflight.md</code>." >> $GITHUB_STEP_SUMMARY
145
-
138
+
139
+
# Set a logic flag if this is the second instance of this day-of-week in this month
140
+
- name: Check if this is the second time this day-of-week happens this month
0 commit comments