RULEAPI-722: Always cleanup temprary branch for coverage

This commit is contained in:
tomasz-kaminski-sonarsource 2022-01-14 08:11:23 +01:00 committed by GitHub
parent 0223c2a00d
commit 60ab75fd73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,7 @@ jobs:
uses: andymckay/cancel-action@0.2
- name: 'Push the updated coverage file to a new branch'
id: create-temp-branch
if: steps.gen-coverage.outputs.new_coverage == 'true'
working-directory: 'rspec'
run: |
@ -78,7 +79,7 @@ jobs:
git push origin master
- name: 'Delete the temporary branch'
if: steps.gen-coverage.outputs.new_coverage == 'true'
if: always() && steps.create-temp-branch.conclusion == 'success'
uses: dawidd6/action-delete-branch@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN}}