Revert "feat: add repo_url_override input to bypass GITHUB_SERVER_URL IP issue"

This reverts commit 69396e75f7.
This commit is contained in:
ywkj 2026-04-26 19:00:25 +08:00
parent 69396e75f7
commit c5e1c62a73
1 changed files with 1 additions and 7 deletions

View File

@ -15,10 +15,6 @@ inputs:
description: 'Optional release note for this version'
required: false
default: ''
repo_url_override:
description: 'Override the repo URL (defaults to GITHUB_SERVER_URL/repo)'
required: false
default: ''
runs:
using: "composite"
@ -30,7 +26,6 @@ runs:
INPUT_API_BASE: ${{ inputs.api_base }}
INPUT_SKILL_SLUG: ${{ inputs.skill_slug }}
INPUT_RELEASE_NOTE: ${{ inputs.release_note }}
INPUT_REPO_URL_OVERRIDE: ${{ inputs.repo_url_override }}
SKILL_SUBPATH: ${{ env.SKILL_SUBPATH }}
SKILL_DOC_PATH: ${{ env.SKILL_DOC_PATH }}
GITHUB_REPOSITORY: ${{ github.repository }}
@ -52,7 +47,6 @@ runs:
ref_name = os.environ['GITHUB_REF_NAME']
sha = os.environ['GITHUB_SHA']
server_url = os.environ['GITHUB_SERVER_URL'].rstrip('/')
repo_override = os.environ.get('INPUT_REPO_URL_OVERRIDE', '').strip()
base_dir = subpath if subpath else '.'
@ -102,7 +96,7 @@ runs:
'version': ref_name,
'release_note': release_note,
'source_type': 'git_ci',
'repo_url': repo_override or f'{server_url}/{repo}.git',
'repo_url': f'{server_url}/{repo}.git',
'repo_subpath': subpath,
'git_ref': ref_name,
'commit_sha': sha,