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
if [[ $ac_db_ghe-gt 0 &&$ac_db_snapshot-eq 0 ]];then
292
+
echo"Error: $GHE_HOSTNAME has Actions Cache service enabled but no Actions Cache data is present in snapshot to restore. Aborting"1>&2
293
+
echo"Please disable Actions cache service in $GHE_HOSTNAME and retry"1>&2
294
+
echo"To disable Actions Cache service run as admin: ghe-actions-cache-disable"1>&2
295
+
exit 1
296
+
fi
297
+
if [[ $ac_db_ghe-eq 0 &&$ac_db_snapshot-gt 0 &&!$RESTORE_SETTINGS ]];then
298
+
echo"Error: $GHE_HOSTNAME has Actions Cache service disabled but the snapshot is attempting to restore data for the service. Aborting"1>&2
299
+
echo"Please enable Actions cache service in $GHE_HOSTNAME and retry"1>&2
300
+
echo"To enable Actions Cache service run as admin: ghe-actions-cache-enable"1>&2
301
+
exit 1
302
+
fi
303
+
else
288
304
echo"Error: $GHE_HOSTNAME must have GitHub Actions enabled before restoring since the snapshot contains Actions data. Aborting."1>&2
289
305
echo"Setup details for enabling Actions can be found here: https://docs.github.com/en/enterprise-server@$RELEASE_VERSION/admin/github-actions/advanced-configuration-and-troubleshooting/backing-up-and-restoring-github-enterprise-server-with-github-actions-enabled"1>&2
0 commit comments