File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
22
run : |
23
23
set -euo pipefail
24
24
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 "
28
28
29
29
build :
30
30
needs : [args]
Original file line number Diff line number Diff line change @@ -165,10 +165,10 @@ jobs:
165
165
fetch-depth: 0
166
166
- id: ldflags
167
167
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 "
172
172
173
173
# Trusted builder.
174
174
build:
You can’t perform that action at this time.
0 commit comments