Skip to content

Commit 7091873

Browse files
authored
Remove set-output usage (#15)
* Remove set-output * Update actions * Update examples to next tag
1 parent 5d741be commit 7091873

9 files changed

+22
-21
lines changed

.github/workflows/cumulus.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ jobs:
4444
runtime: shell
4545
name: Build ${{ matrix.category }}/${{ matrix.runtime }}
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
4848
with:
4949
path: action
5050

5151
- name: Checkout repo under test
52-
uses: actions/checkout@v3
52+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
5353
with:
5454
repository: paritytech/cumulus
5555
fetch-depth: 0

.github/workflows/polkadot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737

3838
name: Build ${{ matrix.chain }}
3939
steps:
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
4141
with:
4242
path: action
4343

4444
- name: Checkout repo under test
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
4646
with:
4747
repository: paritytech/polkadot
4848
fetch-depth: 0

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Make sure you store the yml files shown below in your repository under `.github/
7171
- uses: actions/checkout@v3
7272
- name: Srtool build
7373
id: srtool_build
74-
uses: chevdor/srtool-actions@v0.5.0
74+
uses: chevdor/srtool-actions@v0.6.0
7575
with:
7676
chain: ${{ matrix.chain }}
7777
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
@@ -97,7 +97,7 @@ Make sure you store the yml files shown below in your repository under `.github/
9797
- uses: actions/checkout@v3
9898
- name: Srtool build
9999
id: srtool_build
100-
uses: chevdor/srtool-actions@v0.5.0
100+
uses: chevdor/srtool-actions@v0.6.0
101101
with:
102102
chain: ${{ matrix.chain }}
103103
- name: Summary
@@ -124,7 +124,7 @@ Make sure you store the yml files shown below in your repository under `.github/
124124
- uses: actions/checkout@v3
125125
- name: Srtool build
126126
id: srtool_build
127-
uses: chevdor/srtool-actions@v0.5.0
127+
uses: chevdor/srtool-actions@v0.6.0
128128
with:
129129
chain: ${{ matrix.chain }}
130130
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
@@ -157,7 +157,7 @@ Make sure you store the yml files shown below in your repository under `.github/
157157
- uses: actions/checkout@v3
158158
- name: Srtool build
159159
id: srtool_build
160-
uses: chevdor/srtool-actions@v0.5.0
160+
uses: chevdor/srtool-actions@v0.6.0
161161
env:
162162
# optional: will be passed to docker srtool run cmd
163163
BUILD_OPTS: "--features on-chain-release-build"
@@ -186,7 +186,7 @@ Make sure you store the yml files shown below in your repository under `.github/
186186
- uses: actions/checkout@v3
187187
- name: Srtool build
188188
id: srtool_build
189-
uses: chevdor/srtool-actions@v0.5.0
189+
uses: chevdor/srtool-actions@v0.6.0
190190
env:
191191
# optional: will override the parachain pallet ID and authorize_upgrade call ID,
192192
# which will result in a different parachain_authorize_upgrade_hash

action.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ runs:
161161
CMD="docker run -i --rm -v ${{ env.WORKDIR }}:/build ${{ env.SRTOOL_IMAGE }} version -cM"
162162
JSON=`$CMD`
163163
echo $JSON | jq .
164-
echo "::set-output name=version::$JSON"
164+
echo "version=$JSON" >> $GITHUB_OUTPUT
165165
echo ::endgroup
166166
167167
- id: info
@@ -171,7 +171,7 @@ runs:
171171
CMD="docker run -i --rm -v ${{ env.WORKDIR }}:/build ${{ env.SRTOOL_IMAGE }} info -cM"
172172
JSON=`$CMD`
173173
echo $JSON | jq .
174-
echo "::set-output name=info::$JSON"
174+
echo "info=$JSON" >> $GITHUB_OUTPUT
175175
echo ::endgroup
176176
177177
- id: build
@@ -189,20 +189,21 @@ runs:
189189
echo ║ $line
190190
JSON="$line"
191191
done
192-
echo ::set-output name=json::$JSON
192+
193+
echo "json=$JSON" >> $GITHUB_OUTPUT
193194
echo $JSON | jq .
194195
195196
PROP=`echo $JSON | jq -r .runtimes.compact.prop`
196-
echo ::set-output name=proposal_hash::$PROP
197+
echo "proposal_hash=$PROP" >> $GITHUB_OUTPUT
197198
198199
WASM=`echo $JSON | jq -r .runtimes.compact.wasm`
199-
echo ::set-output name=wasm::$WASM
200+
echo "wasm=$WASM" >> $GITHUB_OUTPUT
200201
201202
Z_WASM=`echo $JSON | jq -r .runtimes.compressed.wasm`
202-
echo ::set-output name=wasm_compressed::$Z_WASM
203+
echo "wasm_compressed=$Z_WASM" >> $GITHUB_OUTPUT
203204
204205
IPFS=`echo $JSON | jq -r .runtimes.compact.ipfs`
205-
echo ::set-output name=ipfs::$IPFS
206+
echo "ipfs=$IPFS" >> $GITHUB_OUTPUT
206207
}
207208
208209
echo ::endgroup

examples/01_basic.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- name: Srtool build
1414
id: srtool_build
15-
uses: chevdor/srtool-actions@v0.5.0
15+
uses: chevdor/srtool-actions@v0.6.0
1616
with:
1717
chain: ${{ matrix.chain }}
1818
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime

examples/02_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- name: Srtool build
1414
id: srtool_build
15-
uses: chevdor/srtool-actions@v0.5.0
15+
uses: chevdor/srtool-actions@v0.6.0
1616
with:
1717
chain: ${{ matrix.chain }}
1818
- name: Summary

examples/03_artifacts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- name: Srtool build
1414
id: srtool_build
15-
uses: chevdor/srtool-actions@v0.5.0
15+
uses: chevdor/srtool-actions@v0.6.0
1616
with:
1717
chain: ${{ matrix.chain }}
1818
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime

examples/05_build_opts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- name: Srtool build
1414
id: srtool_build
15-
uses: chevdor/srtool-actions@v0.5.0
15+
uses: chevdor/srtool-actions@v0.6.0
1616
env:
1717
# optional: will be passed to docker srtool run cmd
1818
BUILD_OPTS: "--features on-chain-release-build"

examples/06_parachain_overrides.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- name: Srtool build
1414
id: srtool_build
15-
uses: chevdor/srtool-actions@v0.5.0
15+
uses: chevdor/srtool-actions@v0.6.0
1616
env:
1717
# optional: will override the parachain pallet ID and authorize_upgrade call ID,
1818
# which will result in a different parachain_authorize_upgrade_hash

0 commit comments

Comments
 (0)