From 8ebe1eee8a9bf1cfadf6938f3c7e5bc86893b5f3 Mon Sep 17 00:00:00 2001 From: Wilfried Kopp Date: Mon, 17 Oct 2022 11:45:02 +0200 Subject: [PATCH 1/3] Remove set-output --- action.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index ca430d5..fc31dc2 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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 @@ -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 From 9a86853cb48a0b2b5ea6ebafafac425462530e69 Mon Sep 17 00:00:00 2001 From: Wilfried Kopp Date: Mon, 17 Oct 2022 11:50:53 +0200 Subject: [PATCH 2/3] Update actions --- .github/workflows/cumulus.yml | 4 ++-- .github/workflows/polkadot.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cumulus.yml b/.github/workflows/cumulus.yml index 9bc36a4..71f3764 100644 --- a/.github/workflows/cumulus.yml +++ b/.github/workflows/cumulus.yml @@ -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 diff --git a/.github/workflows/polkadot.yml b/.github/workflows/polkadot.yml index 60046be..66b9cbf 100644 --- a/.github/workflows/polkadot.yml +++ b/.github/workflows/polkadot.yml @@ -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 From 4c529f2801c9b5489b70a6b8b2ba8e420032e335 Mon Sep 17 00:00:00 2001 From: Wilfried Kopp Date: Mon, 17 Oct 2022 11:53:56 +0200 Subject: [PATCH 3/3] Update examples to next tag --- README.md | 10 +++++----- examples/01_basic.yml | 2 +- examples/02_report.yml | 2 +- examples/03_artifacts.yml | 2 +- examples/05_build_opts.yml | 2 +- examples/06_parachain_overrides.yml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8f7486c..304b70c 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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 @@ -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" @@ -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 diff --git a/examples/01_basic.yml b/examples/01_basic.yml index b085e80..42bbaf3 100644 --- a/examples/01_basic.yml +++ b/examples/01_basic.yml @@ -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 diff --git a/examples/02_report.yml b/examples/02_report.yml index 054bb8d..78dca9d 100644 --- a/examples/02_report.yml +++ b/examples/02_report.yml @@ -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 diff --git a/examples/03_artifacts.yml b/examples/03_artifacts.yml index 4fe7c2f..8ec31da 100644 --- a/examples/03_artifacts.yml +++ b/examples/03_artifacts.yml @@ -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 diff --git a/examples/05_build_opts.yml b/examples/05_build_opts.yml index 785e342..7ee5cf1 100644 --- a/examples/05_build_opts.yml +++ b/examples/05_build_opts.yml @@ -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" diff --git a/examples/06_parachain_overrides.yml b/examples/06_parachain_overrides.yml index de6bf01..868b75e 100644 --- a/examples/06_parachain_overrides.yml +++ b/examples/06_parachain_overrides.yml @@ -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