Skip to content

Commit

Permalink
Run pre-check cleanup also in GH actions (#680)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Morgenstern <[email protected]>
  • Loading branch information
martinmo authored Aug 5, 2024
1 parent c462a7d commit 57479ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
auth:
application_credential_secret: ${{ secrets[inputs.secret_name] }}
EOF
- name: "Clean up any lingering resources from previous run"
if: ${{ inputs.layer == 'iaas' && inputs.version == 'v4' }}
run: "cd /scs-compliance && ./cleanup.py -c ${{ inputs.cloud }} --prefix _scs-"
- name: "Run scs-compliance-check"
run: "cd /scs-compliance && ./scs-compliance-check.py scs-compatible-${{ inputs.layer }}.yaml --version ${{ inputs.version }} -o result.yaml -s ${{ inputs.cloud }} -a os_cloud=${{ inputs.cloud }}"
- name: "Upload results"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scs-compliance-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
auth:
password: ${{ secrets[inputs.secret_name] }}
EOF
- name: "Clean up any lingering resources from previous run"
if: ${{ inputs.layer == 'iaas' && inputs.version == 'v4' }}
run: "cd /scs-compliance && ./cleanup.py -c ${{ inputs.cloud }} --prefix _scs-"
- name: "Run scs-compliance-check"
run: "cd /scs-compliance && ./scs-compliance-check.py scs-compatible-${{ inputs.layer }}.yaml --version ${{ inputs.version }} -o result.yaml -s ${{ inputs.cloud }} -a os_cloud=${{ inputs.cloud }}"
- name: "Upload results"
Expand Down

0 comments on commit 57479ad

Please sign in to comment.