Skip to content

Commit

Permalink
Fix GitHub actions in case of deleting atrifacts (#27)
Browse files Browse the repository at this point in the history
* Run deleting artifacts if a previous job is succeeded or failed

* Testing

* Revert "Testing"

This reverts commit 3b40ad0.
  • Loading branch information
dmitriy-chernysh authored Oct 19, 2024
1 parent 72a492f commit e7fa8bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ jobs:
uses: ./.github/workflows/clean-up-artifacts.yml
needs: deploy-to-production-track
# Run this job even if "needs" job is failed
if: ${{ always() && contains(needs.*.result, 'failure') }}
if: success() || failure()
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
uses: ./.github/workflows/clean-up-artifacts.yml
needs: run-tests
# Run this job even if "needs" job is failed
if: ${{ always() && contains(needs.*.result, 'failure') }}
if: success() || failure()
secrets: inherit

0 comments on commit e7fa8bb

Please sign in to comment.