Skip to content

Commit 3e48074

Browse files
committed
set matrix exclusion dynamically
1 parent 3c1271b commit 3e48074

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/s3-image-sync.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,15 @@ jobs:
4747
ANSIBLE_FORCE_COLOR: True
4848
OS_CLOUD: openstack
4949
CI_CLOUD: ${{ vars.CI_CLOUD }}
50+
outputs:
51+
ci_cloud: ${{ steps.ci.outputs.CI_CLOUD }}
5052
steps:
5153
- uses: actions/checkout@v2
5254

5355
- name: Record which cloud CI is running on
56+
id: ci
5457
run: |
55-
echo CI_CLOUD: ${{ env.CI_CLOUD }}
58+
echo "CI_CLOUD=${{ env.CI_CLOUD }}" >> "$GITHUB_OUTPUT"
5659
5760
- name: Setup environment
5861
run: |
@@ -111,7 +114,7 @@ jobs:
111114
- RL9
112115
- RL9-cuda
113116
exclude:
114-
- cloud: LEAFCLOUD
117+
- cloud: ${{ needs.image_upload.outputs.ci_cloud }}
115118

116119
env:
117120
ANSIBLE_FORCE_COLOR: True

.github/workflows/upload-release-image.yml.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
bash .github/bin/get-s3-image.sh ${{ inputs.image_name }} ${{ inputs.bucket_name }}
5454

5555
- name: Cleanup OpenStack Image (on error or cancellation)
56-
if: cancelled()
56+
if: cancelled() || failure()
5757
run: |
5858
. venv/bin/activate
5959
image_hanging=$(openstack image list --name ${{ inputs.image_name }} -f value -c ID -c Status | grep -v ' active$' | awk '{print $1}')

0 commit comments

Comments
 (0)