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

[BUG] No changes detected for new tag #2437

Open
4 tasks done
mpern opened this issue Feb 18, 2025 · 1 comment
Open
4 tasks done

[BUG] No changes detected for new tag #2437

mpern opened this issue Feb 18, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@mpern
Copy link

mpern commented Feb 18, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

When trying to build a new release tag (v*), the action does not select any previous commit and fails to report any changes.

To Reproduce

  1. create workflow triggered on tag push:
on:
  push:
    tags:
      - v*
  1. add and commit some dummy files, over a few commits
  2. tag the latest commit as v1.0.0 and push the tag

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-22.04

Expected behavior?

Changes detected correctly.

Relevant log output

changed-files
  Using local .git directory
  Running on a push event...
  Warning: No previous tag found
  Error: Unable to locate the commit sha: 
  Error: Please verify that the commit sha is correct, and increase the 'fetch_depth' input if needed
  Retrieving changes between  () → e6eb9203c6c2c87b4dad7177f06eddb6ad80e024 (v1.0.0)
  All Done!

Has all relevant logs been included?

  • I've included all relevant logs

Anything else?

I've enabled fetch-depth: 0 for my checkout step, so it's not like the history is missing.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mpern mpern added the bug Something isn't working label Feb 18, 2025
@tj-actions-bot
Copy link
Contributor

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants