diff --git a/.github/workflows/pr-close-image-delete.yaml b/.github/workflows/pr-close-image-delete.yaml index b4a93a64..6f7e6377 100644 --- a/.github/workflows/pr-close-image-delete.yaml +++ b/.github/workflows/pr-close-image-delete.yaml @@ -1,8 +1,20 @@ name: Delete quay image on PR closed on: - pull_request: - types: - - closed + pull_request_target: + types: [ closed ] + branches: + - 'main' + paths-ignore: + - 'LICENSE' + - '**/.gitignore' + - '**.md' + - '**.adoc' + - '*.txt' + - 'Makefile' + - '.github/**' + - 'docs/**' + - 'demo/**' + env: QUAY_ODH_CAIKIT_TGIS_SERVING_IMAGE_REPO: ${{ secrets.QUAY_ODH_CAIKIT_TGIS_SERVING_IMAGE_REPO }}