[PR #606] [MERGED] Handle tagless versions #1521

Closed
opened 2026-03-01 21:51:32 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/606
Author: @jsoref
Created: 4/4/2021
Status: Merged
Merged: 4/5/2021
Merged by: @cplee

Base: masterHead: tagless-version


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Makefile (+1 -1)

📄 Description

I'm a troublemaker. I don't generally fetch tags/branches (and I actively remove them from my forks before I start working).

Average case:
git describe --tags
v0.2.9-130-g47e1ba1
git describe --tags --dirty --always | cut -c 2-
0.2.9-130-g47e1ba1
git describe --tags --dirty --always | sed -e s/^v//
47e1ba1

Edge case (no tags):
git describe --tags --dirty --always
47e1ba1
git describe --tags --dirty --always | cut -c 2-
7e1ba1
-- this is undesirable


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/606 **Author:** [@jsoref](https://github.com/jsoref) **Created:** 4/4/2021 **Status:** ✅ Merged **Merged:** 4/5/2021 **Merged by:** [@cplee](https://github.com/cplee) **Base:** `master` ← **Head:** `tagless-version` --- ### 📝 Commits (1) - [`8013f27`](https://github.com/nektos/act/commit/8013f27e8046ca043cd09162b50f9f6e2c695ec2) Handle tagless versions ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+1 -1) </details> ### 📄 Description I'm a troublemaker. I don't generally fetch tags/branches (and I actively remove them from my forks before I start working). Average case: git describe --tags v0.2.9-130-g47e1ba1 git describe --tags --dirty --always | cut -c 2- 0.2.9-130-g47e1ba1 git describe --tags --dirty --always | sed -e s/^v// 47e1ba1 Edge case (no tags): git describe --tags --dirty --always 47e1ba1 git describe --tags --dirty --always | cut -c 2- 7e1ba1 -- this is undesirable --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:51:32 +03:00
Sign in to join this conversation.
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
starred/act#1521
No description provided.