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 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/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 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