Skip to content

Commit 8ca50df

Browse files
authored
Merge pull request #824 from github/users/kgrzebie/actions-migrate-4293
Add details how to enable Actions in new appliance
2 parents f26ee12 + 2153c50 commit 8ca50df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/ghe-restore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ fi
257257
# Make sure the GitHub appliance has Actions enabled if the snapshot contains Actions data.
258258
if [ -d "$GHE_RESTORE_SNAPSHOT_PATH/mssql" ] || [ -d "$GHE_RESTORE_SNAPSHOT_PATH/actions" ]; then
259259
if ! ghe-ssh "$GHE_HOSTNAME" -- 'ghe-config --true app.actions.enabled'; then
260+
# Get GHES release version in major.minor format
261+
RELEASE_VERSION=$(ghe-ssh "$GHE_HOSTNAME" -- 'ghe-config --get core.package-version' | cut -d '.' -f 1,2)
262+
260263
echo "Error: $GHE_HOSTNAME must have GitHub Actions enabled before restoring since the snapshot contains Actions data. Aborting." 1>&2
264+
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
261265
exit 1
262266
fi
263267
fi

0 commit comments

Comments
 (0)