Modified create pre-release workflow

This commit is contained in:
NotAlwaysTrue
2025-12-23 08:58:47 +08:00
parent 7fc21189c5
commit bbe4e95c17
+3 -3
View File
@@ -19,9 +19,9 @@ jobs:
run: | run: |
echo "result=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_OUTPUT" echo "result=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_OUTPUT"
- name: Sanity checks - name: Sanity checks
if: ${{ github.event_name == 'workflow_dispatch' && steps.extract-branch-name.outputs.result != 'develop' }} if: ${{ github.event_name == 'workflow_dispatch' && steps.extract-branch-name.outputs.result != 'OBT-Release' }}
run: | run: |
echo "::error::this workflow can only be run on the \"develop\" branch" echo "::error::this workflow can only be run on the \"OBT-Release\" branch"
exit 1 exit 1
- name: Get latest nightly-tagged commit - name: Get latest nightly-tagged commit
@@ -53,7 +53,7 @@ jobs:
const ref = await github.rest.git.getRef({ const ref = await github.rest.git.getRef({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
ref: "heads/develop", ref: "heads/OBT-Release",
}); });
return ref.data.object.sha; return ref.data.object.sha;