Skip to content

Commit

Permalink
Fix idl-buffer and job outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbogle committed Nov 23, 2022
1 parent 7df730b commit 28215da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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.3
uses: actions/solana-buffer-deploy@v0.1.4
with:
network: https://api.devnet.solana.com
program: my_program
Expand Down
13 changes: 6 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 28215da

Please sign in to comment.