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

Tag branch not found from sha #246

Closed
secondmanveran opened this issue Jan 11, 2022 · 5 comments
Closed

Tag branch not found from sha #246

secondmanveran opened this issue Jan 11, 2022 · 5 comments

Comments

@secondmanveran
Copy link

I need to create a new branch release based on that latest release tag created by semantic-release.

I've tested and I am passing in the correct sha for my tag, but I'm getting the following message:

Error: Not Found

Any help here?

@peterjgrainger
Copy link
Owner

peterjgrainger commented Jan 11, 2022

when using the checkout action what fetch depth are you using? The default?

Are you triggering the action release? https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release

@secondmanveran
Copy link
Author

- name: Checkout
  uses: actions/checkout@v2
  with:
    ref: main
    fetch-depth: 0

@secondmanveran
Copy link
Author

Missed the second question ... sorry.

This isn't a release workflow, I'm listening on push, doing the semantic-release, then fetching the latest tag ... be it new, or not.

There will be instances (rare) that we'll deploy a tag that's older than the current main, but that's fine, there are many times that we'll push commits that shouldn't trigger an actual release, so deploying an old tag is fine.

@peterjgrainger
Copy link
Owner

I think there might be an issue with the checkout action regarding tags actions/checkout#579

Reading the comments I think that if you don't use fetch-depth you might also get the tags.

@secondmanveran
Copy link
Author

Could be. I am using depth 0 though so the --no-tags flag shouldn't be present ... who knows.

Thanks for your attempt 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