Skip to content

[BUG] No changes detected for new tag #2437

@mpern

Description

@mpern

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions