From 7f99bc5b552ac29edbe8fae65a328ca5ace9d76a Mon Sep 17 00:00:00 2001 From: Karl Cardenas Date: Tue, 19 Dec 2023 15:49:16 -0700 Subject: [PATCH] ci: previous property is not working as expected --- .github/workflows/container-prune.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/container-prune.yaml b/.github/workflows/container-prune.yaml index c32f53c201..bdded3ff3c 100644 --- a/.github/workflows/container-prune.yaml +++ b/.github/workflows/container-prune.yaml @@ -1,10 +1,12 @@ name: Container Image Cleanup on: - workflow_run: - workflows: ["Nighly Docker Build"] - types: [completed] - workflow_dispatch: + # workflow_run: + # workflows: ["Nighly Docker Build"] + # types: [completed] + # workflow_dispatch: + push: + branches-ignore: [ main ] jobs: @@ -17,7 +19,7 @@ jobs: owner: spectrocloud name: librarium token: ${{ secrets.GITHUB_TOKEN }} - untagged-older-than: 1d + untagged-keep-latest: 1 - name: Slack Notification if: ${{ failure() }}