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

Fallback if no tags are present on the repo #13

Open
LucHeart opened this issue Nov 18, 2024 · 3 comments
Open

Fallback if no tags are present on the repo #13

LucHeart opened this issue Nov 18, 2024 · 3 comments

Comments

@LucHeart
Copy link

We use this in our CI pipeline to determine weather to set a docker image tag to latest or not during build and push.

The problem is, when someone forks the repo it does not come with tags. That makes the build fail.
So optimally we would have some way to have it fail silently and handle that in the workflow.

@oprypin
Copy link
Owner

oprypin commented Nov 18, 2024

Maybe try a setup like this?

  - uses: oprypin/find-latest-tag@v1
    with:
      repository: octokit/rest.js
    continue-on-error: true

@LucHeart
Copy link
Author

i suppose yeah, do you have any Idea how i could tell if the step errored though?

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

2 participants