Skip to content

Commit

Permalink
Fix buffer outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbogle committed Nov 23, 2022
1 parent acc9397 commit 7df730b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 4 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}"
Expand Down

0 comments on commit 7df730b

Please sign in to comment.