File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,15 @@ jobs:
47
47
ANSIBLE_FORCE_COLOR : True
48
48
OS_CLOUD : openstack
49
49
CI_CLOUD : ${{ vars.CI_CLOUD }}
50
+ outputs :
51
+ ci_cloud : ${{ steps.ci.outputs.CI_CLOUD }}
50
52
steps :
51
53
- uses : actions/checkout@v2
52
54
53
55
- name : Record which cloud CI is running on
56
+ id : ci
54
57
run : |
55
- echo CI_CLOUD: ${{ env.CI_CLOUD }}
58
+ echo " CI_CLOUD= ${{ env.CI_CLOUD }}" >> "$GITHUB_OUTPUT"
56
59
57
60
- name : Setup environment
58
61
run : |
@@ -111,7 +114,7 @@ jobs:
111
114
- RL9
112
115
- RL9-cuda
113
116
exclude :
114
- - cloud : LEAFCLOUD
117
+ - cloud : ${{ needs.image_upload.outputs.ci_cloud }}
115
118
116
119
env :
117
120
ANSIBLE_FORCE_COLOR : True
Original file line number Diff line number Diff line change 53
53
bash .github/bin/get-s3-image.sh ${{ inputs.image_name }} ${{ inputs.bucket_name }}
54
54
55
55
- name: Cleanup OpenStack Image (on error or cancellation)
56
- if: cancelled()
56
+ if: cancelled() || failure()
57
57
run: |
58
58
. venv/bin/activate
59
59
image_hanging=$(openstack image list --name ${{ inputs.image_name }} -f value -c ID -c Status | grep -v ' active$' | awk '{print $1}')
You can’t perform that action at this time.
0 commit comments