Skip to content

Commit fbd4bec

Browse files
committed
Add release specific version to documentation URL
1 parent 96b50d0 commit fbd4bec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/ghe-restore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,8 +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
261-
echo "Setup details for enabling Actions can be found here: https://docs.github.com/en/enterprise-server/admin/github-actions/advanced-configuration-and-troubleshooting/backing-up-and-restoring-github-enterprise-server-with-github-actions-enabled" 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
262265
exit 1
263266
fi
264267
fi

0 commit comments

Comments
 (0)