Skip to content

Commit

Permalink
Remove set-output usage (#15)
Browse files Browse the repository at this point in the history
* Remove set-output

* Update actions

* Update examples to next tag
  • Loading branch information
chevdor authored Oct 24, 2022
1 parent 5d741be commit 7091873
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cumulus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ jobs:
runtime: shell
name: Build ${{ matrix.category }}/${{ matrix.runtime }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
path: action

- name: Checkout repo under test
uses: actions/checkout@v3
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
repository: paritytech/cumulus
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/polkadot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:

name: Build ${{ matrix.chain }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
path: action

- name: Checkout repo under test
uses: actions/checkout@v3
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
repository: paritytech/polkadot
fetch-depth: 0
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Make sure you store the yml files shown below in your repository under `.github/
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
with:
chain: ${{ matrix.chain }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
Expand All @@ -97,7 +97,7 @@ Make sure you store the yml files shown below in your repository under `.github/
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
with:
chain: ${{ matrix.chain }}
- name: Summary
Expand All @@ -124,7 +124,7 @@ Make sure you store the yml files shown below in your repository under `.github/
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
with:
chain: ${{ matrix.chain }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
Expand Down Expand Up @@ -157,7 +157,7 @@ Make sure you store the yml files shown below in your repository under `.github/
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
env:
# optional: will be passed to docker srtool run cmd
BUILD_OPTS: "--features on-chain-release-build"
Expand Down Expand Up @@ -186,7 +186,7 @@ Make sure you store the yml files shown below in your repository under `.github/
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
env:
# optional: will override the parachain pallet ID and authorize_upgrade call ID,
# which will result in a different parachain_authorize_upgrade_hash
Expand Down
15 changes: 8 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ runs:
CMD="docker run -i --rm -v ${{ env.WORKDIR }}:/build ${{ env.SRTOOL_IMAGE }} version -cM"
JSON=`$CMD`
echo $JSON | jq .
echo "::set-output name=version::$JSON"
echo "version=$JSON" >> $GITHUB_OUTPUT
echo ::endgroup
- id: info
Expand All @@ -171,7 +171,7 @@ runs:
CMD="docker run -i --rm -v ${{ env.WORKDIR }}:/build ${{ env.SRTOOL_IMAGE }} info -cM"
JSON=`$CMD`
echo $JSON | jq .
echo "::set-output name=info::$JSON"
echo "info=$JSON" >> $GITHUB_OUTPUT
echo ::endgroup
- id: build
Expand All @@ -189,20 +189,21 @@ runs:
echo ║ $line
JSON="$line"
done
echo ::set-output name=json::$JSON
echo "json=$JSON" >> $GITHUB_OUTPUT
echo $JSON | jq .
PROP=`echo $JSON | jq -r .runtimes.compact.prop`
echo ::set-output name=proposal_hash::$PROP
echo "proposal_hash=$PROP" >> $GITHUB_OUTPUT
WASM=`echo $JSON | jq -r .runtimes.compact.wasm`
echo ::set-output name=wasm::$WASM
echo "wasm=$WASM" >> $GITHUB_OUTPUT
Z_WASM=`echo $JSON | jq -r .runtimes.compressed.wasm`
echo ::set-output name=wasm_compressed::$Z_WASM
echo "wasm_compressed=$Z_WASM" >> $GITHUB_OUTPUT
IPFS=`echo $JSON | jq -r .runtimes.compact.ipfs`
echo ::set-output name=ipfs::$IPFS
echo "ipfs=$IPFS" >> $GITHUB_OUTPUT
}
echo ::endgroup
2 changes: 1 addition & 1 deletion examples/01_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
with:
chain: ${{ matrix.chain }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
Expand Down
2 changes: 1 addition & 1 deletion examples/02_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
with:
chain: ${{ matrix.chain }}
- name: Summary
Expand Down
2 changes: 1 addition & 1 deletion examples/03_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
with:
chain: ${{ matrix.chain }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
Expand Down
2 changes: 1 addition & 1 deletion examples/05_build_opts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
env:
# optional: will be passed to docker srtool run cmd
BUILD_OPTS: "--features on-chain-release-build"
Expand Down
2 changes: 1 addition & 1 deletion examples/06_parachain_overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
env:
# optional: will override the parachain pallet ID and authorize_upgrade call ID,
# which will result in a different parachain_authorize_upgrade_hash
Expand Down

0 comments on commit 7091873

Please sign in to comment.