RULEAPI-722: Always cleanup temprary branch for coverage
This commit is contained in:
parent
0223c2a00d
commit
60ab75fd73
3
.github/workflows/update_coverage.yml
vendored
3
.github/workflows/update_coverage.yml
vendored
@ -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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user