From 7df730bdd807c0b4303273555144bfb7d7741b86 Mon Sep 17 00:00:00 2001 From: jpbogle Date: Tue, 22 Nov 2022 22:15:30 -0500 Subject: [PATCH] Fix buffer outputs --- README.md | 2 +- action.yml | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c4708ba..a1a75ca 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.2 +uses: actions/solana-buffer-deploy@v0.1.3 with: network: https://api.devnet.solana.com program: my_program diff --git a/action.yml b/action.yml index 4d91269..ca5495e 100644 --- a/action.yml +++ b/action.yml @@ -50,11 +50,6 @@ runs: env: NETWORK: ${{ inputs.network }} PROGRAM: ${{ inputs.program }} - - name: Set buffer output - id: buffer-deploy - shell: bash - run: | - echo "buffer=$(cat buffer.out | sed 's/Buffer: //g' | xargs echo -n)" >> $GITHUB_OUTPUT - name: IDL Buffer Deploy uses: nick-invision/retry@v2 @@ -67,12 +62,13 @@ runs: PROGRAM_ID: ${{ inputs.program-id }} PROGRAM: ${{ inputs.program }} NETWORK: ${{ inputs.network }} - - name: Set idl buffer output - id: idl-buffer-deploy + + - name: Set buffer output + id: buffer-deploy 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 - - run: echo "buffer=${{ steps.buffer-deploy.outputs.buffer }}" shell: bash - run: echo "idl_buffer=${{ steps.buffer-deploy.outputs.idl_buffer }}"