diff --git a/.github/workflows/scs-compliance-check-with-application-credential.yml b/.github/workflows/scs-compliance-check-with-application-credential.yml index cd79840a0..c834da632 100644 --- a/.github/workflows/scs-compliance-check-with-application-credential.yml +++ b/.github/workflows/scs-compliance-check-with-application-credential.yml @@ -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" diff --git a/.github/workflows/scs-compliance-check.yml b/.github/workflows/scs-compliance-check.yml index 373038951..51abfc999 100644 --- a/.github/workflows/scs-compliance-check.yml +++ b/.github/workflows/scs-compliance-check.yml @@ -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"