File tree Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ if [ -z "${RELEASEVERS}" ] ; then
61
61
;;
62
62
esac
63
63
fi
64
- echo " ::set-output name= release:: ${RELEASEVERS} "
64
+ echo " release= ${RELEASEVERS} " >> " $GITHUB_OUTPUT "
65
65
66
66
# Derive a new bumped version from the release version.
67
67
# Increment the last number in the string.
@@ -72,4 +72,4 @@ VERSION="$(echo "${VERSION}" | sed -E 's/([-.])rc([-.]|$)/\1pre\2/')"
72
72
if ! [[ ${VERSION} =~ [-.]pre([-.]| $) ]] ; then
73
73
VERSION=" ${VERSION} -pre"
74
74
fi
75
- echo " ::set-output name= bumped:: ${VERSION} "
75
+ echo " bumped= ${VERSION} " >> " $GITHUB_OUTPUT "
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
3
# This script is copied from the depot repo; edit it there, not in the destination repo.
4
4
Original file line number Diff line number Diff line change 21
21
commit-prefix : ${{ steps.echo.outputs.commit-prefix }}
22
22
steps :
23
23
- id : echo
24
- run : echo "::set-output name= commit-prefix:: ${{ env.COMMIT_PREFIX }}"
24
+ run : echo "commit-prefix= ${{ env.COMMIT_PREFIX }}" >> "$GITHUB_OUTPUT "
25
25
bump :
26
26
needs :
27
27
- vars
40
40
'
41
41
- name : Get version
42
42
id : current
43
- run : echo "::set-output name= version:: $(.github/bump-version.get.sh)"
43
+ run : echo "version= $(.github/bump-version.get.sh)" >> "$GITHUB_OUTPUT "
44
44
- name : Compute versions
45
45
id : versions
46
46
run : .github/bump-version.bump.sh "${{ env.MODE }}" "${{ steps.current.outputs.version
78
78
PR=$(jq -r \" .[] | select(.merge_commit_sha == \\\" ${COMMIT}\\\" ) | .number\" \
79
79
\ /tmp/prs.json)\n if [ \" ${PR}\" = \" null\" ] || [ -z \" ${PR}\" ] ; then\n \
80
80
\ exit 0\n fi\n # Build the string we'll use as the description of the release.\n \
81
- echo \" ::set-output name= body:: latest_pr:${PR}\"\n "
81
+ echo \" body= latest_pr:${PR}\" >> \" $GITHUB_OUTPUT \"\n "
82
82
- name : Create prerelease
83
83
uses : ncipollo/release-action@v1
84
84
with :
Original file line number Diff line number Diff line change 18
18
runs-on : ubuntu-22.04
19
19
steps :
20
20
- uses : actions/checkout@v3
21
- - uses : actions-rs/ toolchain@v1
21
+ - uses : IronCoreLabs/rust- toolchain@v1
22
22
with :
23
- profile : minimal
24
- toolchain : stable
25
- override : true
26
23
components : rustfmt
27
24
- run : cargo fmt --all -- --check
28
25
- name : Install cargo-sort
42
39
runs-on : ubuntu-22.04
43
40
steps :
44
41
- uses : actions/checkout@v3
45
- - uses : actions-rs/ toolchain@v1
42
+ - uses : IronCoreLabs/rust- toolchain@v1
46
43
with :
47
- profile : minimal
48
- toolchain : stable
49
- override : true
50
44
components : clippy
51
45
- uses : actions-rs/cargo@v1
52
46
if : env.clippy_args != ''
Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ jobs:
83
83
working-directory : thisrepo
84
84
run : " set -x\n set -o pipefail\n\n # If it fails, we still want to create a PR;\
85
85
\ it helps signal a human to come fix it.\n if ! bash -x .github/update-workflows.sh\
86
- \ ; then\n echo \" ::set-output name= failed:: true\"\ n else\n echo \" ::set-output \
87
- \ name=failed::false \"\n fi\n\n echo \" Git status:\"\n git status\n\n git add\
86
+ \ ; then\n echo \" failed= true\" >> \" $GITHUB_OUTPUT \"\ n else\n echo \" failed=false \" \
87
+ \ >> \" $GITHUB_OUTPUT \"\n fi\n\n echo \" Git status:\"\n git status\n\n git add\
88
88
\ -A\n\n if [ -z \" $(git status --porcelain)\" ] ; then\n echo \" No updated\
89
- \ workflows; done.\"\n echo \" ::set-output name= skip:: true\"\n fi\n "
89
+ \ workflows; done.\"\n echo \" skip= true\" >> \" $GITHUB_OUTPUT \"\n fi\n "
90
90
- name : Commit and push or PR
91
91
working-directory : thisrepo
92
92
if : steps.update.outputs.skip != 'true'
You can’t perform that action at this time.
0 commit comments