Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/propose-program-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
type: choice
options: [devnet, mainnet]
default: devnet
ref:
description: Commit SHA, release tag, or branch of the program to propose. Defaults to the ref the workflow runs on.
default: ""
proposal_name:
description: Squads proposal memo
default: Upgrade delegation program
Expand All @@ -36,6 +39,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
persist-credentials: false

- uses: magicblock-labs/.github/actions/squads-program-upgrade@2789218e3d6332e244eb2aa55b87cfb9c10c5a7f
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ CI only proposes them.
with `dry_run`). It builds `delegation_program` verifiably, uploads a buffer,
and opens a Squads proposal that upgrades the program and records its
verified build. The job summary shows the proposal number and executable
hash.
hash. Set `ref` to a commit SHA, release tag or branch to build that
source instead of the one the workflow is run from.
2. Members review and approve the proposal in the Squads app for mainnet. For
devnet, members can use the shared command-line tools with their own keypair.
3. Once approved, any member with Execute permission executes it.
Expand Down
Loading