From f75cd5d4a354e65901e172aac13ed7e8227556c9 Mon Sep 17 00:00:00 2001 From: Adam Plumer Date: Tue, 10 Feb 2026 14:51:29 -0500 Subject: [PATCH] chore: remove -a from git tag to avoid launching editor We don't need to annotate release tags, they speak for themselves. Therefore, remove the -a tag, in lieu of adding -m with a message. --- .github/workflows/main.yaml | 2 +- tools/github_workflows/workflows_template.libsonnet | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6e096a10..c4452c53 100755 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -679,7 +679,7 @@ { "id": "create_tag", "name": "Generate tag", - "run": "BUILD_SCM_REVISION=$(git rev-parse --short HEAD)\nBUILD_SCM_TIMESTAMP=$(TZ=UTC date --date \"@$(git show -s --format=%ct HEAD)\" +%Y%m%dT%H%M%SZ)\nRELEASE_TAG=\"${BUILD_SCM_TIMESTAMP}-${BUILD_SCM_REVISION}}\"\ngit tag -a $RELEASE_TAG\ngit push --follow-tags\necho \"release_tag=$RELEASE_TAG\" >> $GITHUB_OUTPUT\n" + "run": "BUILD_SCM_REVISION=$(git rev-parse --short HEAD)\nBUILD_SCM_TIMESTAMP=$(TZ=UTC date --date \"@$(git show -s --format=%ct HEAD)\" +%Y%m%dT%H%M%SZ)\nRELEASE_TAG=\"${BUILD_SCM_TIMESTAMP}-${BUILD_SCM_REVISION}}\"\ngit tag $RELEASE_TAG\ngit push --follow-tags\necho \"release_tag=$RELEASE_TAG\" >> $GITHUB_OUTPUT\n" }, { "name": "Create GitHub release and upload artifacts", diff --git a/tools/github_workflows/workflows_template.libsonnet b/tools/github_workflows/workflows_template.libsonnet index 76a9a674..36860e65 100644 --- a/tools/github_workflows/workflows_template.libsonnet +++ b/tools/github_workflows/workflows_template.libsonnet @@ -183,7 +183,7 @@ BUILD_SCM_REVISION=$(git rev-parse --short HEAD) BUILD_SCM_TIMESTAMP=$(TZ=UTC date --date "@$(git show -s --format=%ct HEAD)" +%Y%m%dT%H%M%SZ) RELEASE_TAG="${BUILD_SCM_TIMESTAMP}-${BUILD_SCM_REVISION}}" - git tag -a $RELEASE_TAG + git tag $RELEASE_TAG git push --follow-tags echo "release_tag=$RELEASE_TAG" >> $GITHUB_OUTPUT |||,