WIP: Fix git tag detection in GitHub Actions workflow #61

Closed
Copilot wants to merge 2 commits from copilot/sub-pr-58-another-one into v0.4.8
Copilot commented 2025-11-15 18:55:51 -05:00 (Migrated from github.com)

The workflow's "Extract version info" step uses git describe --tags but the checkout action only fetches the last commit by default, causing tag detection to always fail and return "dev".

Changes:

  • Added fetch-depth: 0 to checkout step to fetch full git history and tags
- name: Checkout repository
  uses: actions/checkout@v4
  with:
    fetch-depth: 0

This enables git describe --tags --abbrev=0 to correctly resolve tags for version info passed to Docker builds.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

The workflow's "Extract version info" step uses `git describe --tags` but the checkout action only fetches the last commit by default, causing tag detection to always fail and return "dev". **Changes:** - Added `fetch-depth: 0` to checkout step to fetch full git history and tags ```yaml - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 ``` This enables `git describe --tags --abbrev=0` to correctly resolve tags for version info passed to Docker builds. <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
bscott (Migrated from github.com) reviewed 2025-11-15 18:55:51 -05:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bscott/subtrackr!61
No description provided.