From 28215da45363bcb58195b7639a2f2614845decdc Mon Sep 17 00:00:00 2001 From: jpbogle Date: Tue, 22 Nov 2022 22:41:39 -0500 Subject: [PATCH] Fix idl-buffer and job outputs --- README.md | 2 +- action.yml | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a1a75ca..4de21b6 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Use this github action to automate Solana program deployments straight from Gith You can now consume the action by referencing the v1 branch ```yaml -uses: actions/solana-buffer-deploy@v0.1.3 +uses: actions/solana-buffer-deploy@v0.1.4 with: network: https://api.devnet.solana.com program: my_program diff --git a/action.yml b/action.yml index ca5495e..f6fdca0 100644 --- a/action.yml +++ b/action.yml @@ -22,10 +22,9 @@ inputs: description: "The keypair to use for deploys" required: true outputs: - buffer: - description: "The buffer address" - idl-buffer: - description: "The idl buffer address." + buffer: ${{ steps.buffer-deploy.outputs.buffer }} + idl-buffer: ${{ steps.buffer-deploy.outputs.idl-buffer }} + runs: using: "composite" steps: @@ -68,10 +67,10 @@ runs: shell: bash run: | echo "buffer=$(cat buffer.out | sed 's/Buffer: //g' | xargs echo -n)" >> $GITHUB_OUTPUT - echo "idl_buffer=$(cat idl-buffer.out | sed 's/Idl buffer created: //g' | xargs echo -n)" >> $GITHUB_OUTPUT + echo "idl-buffer=$(cat idl-buffer.out | sed 's/Idl buffer created: //g' | xargs echo -n)" >> $GITHUB_OUTPUT - run: echo "buffer=${{ steps.buffer-deploy.outputs.buffer }}" shell: bash - - run: echo "idl_buffer=${{ steps.buffer-deploy.outputs.idl_buffer }}" + - run: echo "idl-buffer=${{ steps.buffer-deploy.outputs.idl-buffer }}" shell: bash - name: Transfer idl buffer to authority @@ -82,7 +81,7 @@ runs: shell: bash command: anchor idl set-authority $IDL_BUFFER --provider.cluster $NETWORK --program-id $PROGRAM_ID --new-authority $AUTHORITY --provider.wallet ./deploy-keypair.json env: - IDL_BUFFER: ${{ steps.buffer-deploy.outputs.idl_buffer }} + IDL_BUFFER: ${{ steps.buffer-deploy.outputs.idl-buffer }} AUTHORITY: ${{ inputs.buffer-authority }} NETWORK: ${{ inputs.network }} PROGRAM_ID: ${{ inputs.program-id }}