Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optionally don't fail the job if the image was not found #176

Open
jkremser opened this issue Nov 21, 2024 · 0 comments
Open

optionally don't fail the job if the image was not found #176

jkremser opened this issue Nov 21, 2024 · 0 comments

Comments

@jkremser
Copy link

It would be a nice addition to have a config option to make the action step successful even if the container image was not found in the registry or if it wasn't possible to delete it from some reason.

It's possible to workaround this with:

      - name: Delete image
        uses: bots-house/[email protected]
        continue-on-error: true
        id: del
        with:
          owner: foo
          name: bar
          token: ${{ secrets.GITHUB_TOKEN }}
          tag: pr-${{ github.event.pull_request.number }}
      - run: echo "OK, image not found"
        if: job.steps.del.status == failure()

but having something like

      - name: Delete image
        uses: bots-house/[email protected]
        id: del
        with:
          continueOnError: 'true' # default false
          owner: foo
          name: bar
          token: ${{ secrets.GITHUB_TOKEN }}
          tag: pr-${{ github.event.pull_request.number }}

would be nice UX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant