fix: use current org's course-metadata instead of hardcoded CS101
Use ${{ github.repository_owner }}/course-metadata to dynamically
determine the metadata repository based on current organization.
This commit is contained in:
parent
2e6c1724ef
commit
c5c5e8bbfd
@ -210,10 +210,11 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Upload metadata
|
||||
if: env.RUNNER_METADATA_REPO != '' && env.RUNNER_METADATA_TOKEN != ''
|
||||
if: env.RUNNER_METADATA_TOKEN != ''
|
||||
working-directory: ${{ github.workspace }}
|
||||
env:
|
||||
METADATA_REPO: ${{ env.RUNNER_METADATA_REPO }}
|
||||
# 使用当前组织的 course-metadata 仓库,而不是 Runner 配置中的硬编码值
|
||||
METADATA_REPO: ${{ github.repository_owner }}/course-metadata
|
||||
METADATA_TOKEN: ${{ env.RUNNER_METADATA_TOKEN }}
|
||||
METADATA_BRANCH: ${{ env.RUNNER_METADATA_BRANCH }}
|
||||
STUDENT_REPO: ${{ github.repository }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user