mirror of https://github.com/hashicorp/consul
remove deprecated set-output calls in gha
parent
2740d12d44
commit
2d9ed7c43e
|
@ -34,16 +34,16 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
CONSUL_DATE=$(build-support/scripts/build-date.sh)
|
CONSUL_DATE=$(build-support/scripts/build-date.sh)
|
||||||
## TODO: This assumes `make version` outputs 1.1.1+ent-prerel
|
## TODO: This assumes `make version` outputs 1.1.1+ent-prerel
|
||||||
echo "::set-output name=product-date::${CONSUL_DATE}"
|
echo "product-date=${CONSUL_DATE}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set shared -ldflags
|
- name: Set shared -ldflags
|
||||||
id: shared-ldflags
|
id: shared-ldflags
|
||||||
run: |
|
run: |
|
||||||
T="github.com/hashicorp/consul/version"
|
T="github.com/hashicorp/consul/version"
|
||||||
echo "::set-output name=shared-ldflags::-X ${T}.GitCommit=${GITHUB_SHA::8} \
|
echo "shared-ldflags=-X ${T}.GitCommit=${GITHUB_SHA::8} \
|
||||||
-X ${T}.GitDescribe=${{ steps.set-product-version.outputs.product-version }} \
|
-X ${T}.GitDescribe=${{ steps.set-product-version.outputs.product-version }} \
|
||||||
-X ${T}.BuildDate=${{ steps.get-product-version.outputs.product-date }} \
|
-X ${T}.BuildDate=${{ steps.get-product-version.outputs.product-date }} \
|
||||||
"
|
" >> "$GITHUB_OUTPUT"
|
||||||
validate-outputs:
|
validate-outputs:
|
||||||
needs: set-product-version
|
needs: set-product-version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue