Skip to content

Commit 1662ff4

Browse files
committed
ci: sync with netresearch/.github templates/go-app
Auto-generated by scripts/sync-template.sh. Any changes you want to keep must be declared in .github/template.yaml's intentional-drift: list — the check-template-drift.yml job will otherwise revert them on next sync. Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
1 parent fbe9961 commit 1662ff4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,14 @@ jobs:
7777
# version package (ofelia uses main.* directly; ldap-manager
7878
# forwards into internal/version.*). Empty values are a silent
7979
# no-op for repos that don't declare the corresponding var.
80+
# main.buildTime is injected via auto-build-timestamp (below)
81+
# so it stays populated on workflow_dispatch backfills where
82+
# github.event.head_commit is absent.
8083
ldflags: >-
8184
-s -w
8285
-X main.version=${{ needs.create-release.outputs.tag }}
8386
-X main.build=${{ needs.create-release.outputs.sha }}
84-
-X main.buildTime=${{ github.event.head_commit.timestamp }}
87+
auto-build-timestamp: true
8588
ref: ${{ needs.create-release.outputs.tag }}
8689
release-tag: ${{ needs.create-release.outputs.tag }}
8790
sbom: true

0 commit comments

Comments
 (0)