Skip to content

Commit 79391e8

Browse files
committed
Refine NSC promotion workflow
1 parent a209c85 commit 79391e8

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/promote-nsc-channel.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
ref: ${{ inputs.target_branch }}
5858
fetch-depth: 0
5959
persist-credentials: false
60+
sparse-checkout: |
61+
tools/nsc/manifests
62+
sparse-checkout-cone-mode: false
6063

6164
- name: Resolve source run metadata
6265
id: source-run
@@ -140,15 +143,13 @@ jobs:
140143
- source run: ${RUN_URL}
141144
EOF
142145
143-
if gh release view "${RELEASE_TAG}" --repo "${ASSET_REPO}" >/dev/null 2>&1; then
144-
gh release delete "${RELEASE_TAG}" --repo "${ASSET_REPO}" --cleanup-tag --yes
146+
if ! gh release view "${RELEASE_TAG}" --repo "${ASSET_REPO}" >/dev/null 2>&1; then
147+
gh release create "${RELEASE_TAG}" \
148+
--repo "${ASSET_REPO}" \
149+
--title "${RELEASE_TAG}" \
150+
--notes-file "${notes_file}"
145151
fi
146152
147-
gh release create "${RELEASE_TAG}" \
148-
--repo "${ASSET_REPO}" \
149-
--title "${RELEASE_TAG}" \
150-
--notes-file "${notes_file}"
151-
152153
mapfile -d '' payload_assets < <(find "${RUNNER_TEMP}/nsc-payload" -maxdepth 1 -type f -print0)
153154
if [[ "${#payload_assets[@]}" -eq 0 ]]; then
154155
echo "No payload assets found in ${RUNNER_TEMP}/nsc-payload" >&2

docs/nsc-channel-promotion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ For production use the defaults are:
9393
- `target_branch=master`
9494
- `asset_repo=Devsh-Graphics-Programming/Nabla-Asset-Manifests`
9595

96-
For fork-hosted smoke tests the same workflow can run from a fork repository, read artifacts from an official branch such as `nsc-channel`, publish the release to `Nabla-Asset-Manifests`, and open a PR from the fork back to the requested upstream branch.
96+
For fork-hosted smoke tests the same workflow can run from a fork repository, read artifacts from a selected official branch, publish the release to `Nabla-Asset-Manifests`, and open a PR from the fork back to the requested upstream branch.

0 commit comments

Comments
 (0)