Skip to content

Commit

Permalink
feat(ci): modify the runtime_sub step
Browse files Browse the repository at this point in the history
this commit replaces the name of non-shim runtime to "common"
in the runtime_sub step under the release pipeline because
"common" is used in action-build action to determine
artifact signing, packaging and uploading.

Signed-off-by: jiaxiao zhou <[email protected]>
  • Loading branch information
Mossaka committed Apr 7, 2024
1 parent 19cedc5 commit 61dc1ee
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,15 @@ jobs:
with:
script: |
const crate = '${{ inputs.crate }}';
let runtime = crate.replace(/^containerd-shim-/, '');
core.setOutput('runtime', runtime);
const non_shim_crates = ['wasm', 'wasm-test-modules', 'oci-tar-builder'];
core.setOutput('is_shim', !non_shim_crates.includes(runtime));
if non_shim_crates.includes(runtime) {
core.setOutput('runtime', 'common');
core.setOutput('is_shim', false)
} else {
const runtime = crate.replace(/^containerd-shim-/, '');
core.setOutput('runtime', runtime);
core.setOutput('is_shim', true);
}
### If we are releasing a crate rather than producing a bin, check for crates.io access
- name: Check crates.io ownership
if: ${{ steps.runtime_sub.outputs.is_shim != 'true' }}
Expand Down

0 comments on commit 61dc1ee

Please sign in to comment.