Skip to content

Commit

Permalink
CI-CD: add repository variable OWDELETEARTIFACTS to delete artifacts …
Browse files Browse the repository at this point in the history
…after build end
  • Loading branch information
jmalak committed Mar 22, 2024
1 parent 818bc78 commit 725735f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
name: 'owsnapshot'
path: ${{ steps.owsnapshot.outputs.fullname }}
retention-days: 14
- if: github.event_name == 'PullRequest'
- if: vars.OWDELETEARTIFACTS == 1 && github.event_name == 'PullRequest'
name: Call to delete Pull Request Artifacs
uses: "./.github/actions/artfdelc"
with:
Expand All @@ -161,7 +161,7 @@ jobs:
fullname: ${{ steps.owsnapshot.outputs.fullname }}
owdebug: ${{ vars.OWDEBUG }}
owcurlopts: ${{ vars.OWCURLOPTS }}
- if: github.event_name != 'PullRequest'
- if: vars.OWDELETEARTIFACTS == 1 && github.event_name != 'PullRequest'
name: Call to delete Last CI Build Artifacs
uses: "./.github/actions/artfdelc"
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
- name: Call to delete Artifacs
- if: vars.OWDELETEARTIFACTS == 1
name: Call to delete Artifacs
uses: "./.github/actions/artfdelc"
with:
owdebug: ${{ vars.OWDEBUG }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/wikidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
- name: Call to delete Artifacts
- if: vars.OWDELETEARTIFACTS == 1
name: Call to delete Artifacts
uses: "./.github/actions/artfdelc"
with:
owdebug: ${{ vars.OWDEBUG }}
Expand Down

0 comments on commit 725735f

Please sign in to comment.