Skip to content

Commit a357a77

Browse files
suzuki-shunsukeIan Lewis
and
Ian Lewis
authored

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/pre-submit.e2e.go.config-ldflags-main-dir.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
run: |
2323
set -euo pipefail
2424
25-
echo "::set-output name=version::-X main.gitVersion=v1.2.3"
26-
echo "::set-output name=commit::-X main.gitCommit=abcdef"
27-
echo "::set-output name=branch::-X main.gitBranch=main"
25+
echo "version=-X main.gitVersion=v1.2.3" >> "$GITHUB_OUTPUT"
26+
echo "commit=-X main.gitCommit=abcdef" >> "$GITHUB_OUTPUT"
27+
echo "branch=-X main.gitBranch=main" >> "$GITHUB_OUTPUT"
2828
2929
build:
3030
needs: [args]

internal/builders/go/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ jobs:
165165
fetch-depth: 0
166166
- id: ldflags
167167
run: |
168-
echo "::set-output name=commit-date::$(git log --date=iso8601-strict -1 --pretty=%ct)"
169-
echo "::set-output name=commit::$GITHUB_SHA"
170-
echo "::set-output name=version::$(git describe --tags --always --dirty | cut -c2-)"
171-
echo "::set-output name=tree-state::$(if git diff --quiet; then echo "clean"; else echo "dirty"; fi)"
168+
echo "commit-date=$(git log --date=iso8601-strict -1 --pretty=%ct)" >> "$GITHUB_OUTPUT"
169+
echo "commit=$GITHUB_SHA" >> "$GITHUB_OUTPUT"
170+
echo "version=$(git describe --tags --always --dirty | cut -c2-)" >> "$GITHUB_OUTPUT"
171+
echo "tree-state=$(if git diff --quiet; then echo "clean"; else echo "dirty"; fi)" >> "$GITHUB_OUTPUT"
172172
173173
# Trusted builder.
174174
build:

0 commit comments

Comments
 (0)