mirror of
https://github.com/nektos/act.git
synced 2026-04-25 17:05:50 +03:00
[PR #5986] fix: support nested/chained annotated tags (e.g., gradle/actions@v4) #2646
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#2646
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/5986
Author: @hhgyu
Created: 12/29/2025
Status: 🔄 Open
Base:
master← Head:fix/nested-tag-resolution📝 Commits (3)
ebfae0cfix: resolve nested/chained annotated tagsd161b9bMerge branch 'master' into fix/nested-tag-resolution66fe3b2Merge branch 'master' into fix/nested-tag-resolution📊 Changes
2 files changed (+158 additions, -5 deletions)
View changed files
📝
pkg/common/git/git.go(+71 -5)📝
pkg/common/git/git_test.go(+87 -0)📄 Description
Problem
When using actions with nested annotated tags (where a tag points to
another tag instead of a commit), act fails with:
Unable to resolve v4: unsupported object type
This affects actions like:
gradle/actions@v4borales/actions-yarn@v4pr-mpt/actions-commit-hash@v2These use a chained tag structure:
vX(tag) →vX.x.x(tag) → commitSolution
Add recursive tag resolution to handle nested annotated tags:
resolveTagToCommit(): Recursively dereferences tag chains until reaching a commitresolveRefToCommit(): Wrapper that tries standard resolution first, falls back to nested tag handlingTesting
gradle/actions@v4Fixes #5862
Fixes #1600
Related: #1545
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.