Skip to content

fix: get tags with checkout #304

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

Merged
merged 1 commit into from
Apr 4, 2025
Merged

fix: get tags with checkout #304

merged 1 commit into from
Apr 4, 2025

Conversation

jmeridth
Copy link
Member

@jmeridth jmeridth commented Apr 4, 2025

Pull Request

Proposed Changes

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request
  • run make lint and fix any issues that you have introduced
  • run make test and ensure you have test coverage for the lines you are introducing
  • If publishing new data to the public (scorecards, security scan results, code quality results, live dashboards, etc.), please request review from @jeffrey-luszcz

Reviewer

  • Label as either fix, documentation, enhancement, infrastructure, maintenance or breaking

Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth jmeridth self-assigned this Apr 4, 2025
@Copilot Copilot AI review requested due to automatic review settings April 4, 2025 06:13
@jmeridth jmeridth requested a review from a team as a code owner April 4, 2025 06:13
@jmeridth jmeridth merged commit 372d825 into main Apr 4, 2025
9 checks passed
@jmeridth jmeridth deleted the jm_checkout_with_tags branch April 4, 2025 06:13
@github-actions github-actions bot added the fix label Apr 4, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a bug fix related to fetching and tagging versions correctly during the checkout process.

  • The checkout action now fetches tags by adding "with: fetch-tags: true".
  • The git tag command has been updated to use the output "steps.version.outputs.tag" instead of the previously used "TAG_NAME".

Tip: Leave feedback on Copilot's review comments with the 👎 and 👍 buttons to help improve review quality. Learn more

Comment on lines 29 to 33
{ echo "tag=${tag}"; echo "version=${version}"; echo "major=${major}"; } >> "$GITHUB_OUTPUT"
- name: force update major tag
run: |
git tag v${{ steps.version.outputs.major }} ${TAG_NAME}
git tag v${{ steps.version.outputs.major }} ${{ steps.version.outputs.tag }}
git push -f origin v${{ steps.version.outputs.major }}
Copy link
Preview

Copilot AI Apr 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirm that 'steps.version.outputs.tag' is correctly set in the previous steps, as this change replaces the usage of TAG_NAME and could lead to unintended version tagging if not properly defined.

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant