We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"on": push: paths-ignore: - "**.md" pull_request: paths-ignore: - "**.md" workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0
Then
git tag 0.0.3 git push --tags
Expected: in CI machine, git describe will return 0.0.3 Actual: 0.0.2-1-ged78cae
git describe
0.0.3
0.0.2-1-ged78cae
The text was updated successfully, but these errors were encountered:
More detail:
I create a perl project, in its Makefile.PL, I write:
Makefile.PL
my $VERSION = `git describe`; chomp $VERSION;
However, I find git describe always return some 0.0.1-1-g3c8d998s, not true 0.0.2.
0.0.1-1-g3c8d998
0.0.2
If I change to:
my $VERSION = `git tag`; chomp $VERSION; $VERSION =~ s/.*\n//g;
It looks can work.
Sorry, something went wrong.
Oh, I see. We must use $GITHUB_REF_NAME to get 0.0.2 in github action yaml or Makefile.PL, not git describe.
$GITHUB_REF_NAME
Also, see this answer on SO: https://stackoverflow.com/a/74224803/1024
No branches or pull requests
Then
Expected: in CI machine,
git describe
will return0.0.3
Actual:
0.0.2-1-ged78cae
The text was updated successfully, but these errors were encountered: