From 67dfe55b46f43e9a7c327bd877360353bbea0979 Mon Sep 17 00:00:00 2001 From: Vladimir Guguiev <1524432+vovacodes@users.noreply.github.com> Date: Thu, 9 Nov 2023 20:40:07 +0100 Subject: [PATCH] trigger workflow --- .github/actions/build-anchor/action.yaml | 2 +- .github/workflows/check-staging-deployer-balance.yaml | 5 ++++- programs/squads_multisig_program/Cargo.toml | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/build-anchor/action.yaml b/.github/actions/build-anchor/action.yaml index 5fe6ac72..5dd221b0 100644 --- a/.github/actions/build-anchor/action.yaml +++ b/.github/actions/build-anchor/action.yaml @@ -24,7 +24,7 @@ runs: env: PROGRAM_ID: ${{ inputs.program_id_replacement }} run: | - sed -i "" "s/declare_id!(\".*\")/declare_id!(\"${PROGRAM_ID}\")/g" ./programs/${{ inputs.program }}/src/lib.rs + sed -i "s/declare_id!(\".*\")/declare_id!(\"${PROGRAM_ID}\")/g" ./programs/${{ inputs.program }}/src/lib.rs shell: bash - name: Build with Anchor diff --git a/.github/workflows/check-staging-deployer-balance.yaml b/.github/workflows/check-staging-deployer-balance.yaml index 70679894..4bc74311 100644 --- a/.github/workflows/check-staging-deployer-balance.yaml +++ b/.github/workflows/check-staging-deployer-balance.yaml @@ -15,6 +15,9 @@ jobs: if: contains(github.event.pull_request.labels.*.name, 'deploy-staging') runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Solana uses: ./.github/actions/setup-solana/ @@ -39,6 +42,6 @@ jobs: # Check if the balance is less than the minimum balance using floating point comparison with `bc` if (( $(echo "$BALANCE < $MIN_BALANCE" | bc -l) )); then - echo "Balance of $PUBLIC_KEY is less than $MIN_BALANCE SOL" + echo "Balance of $PUBLIC_KEY is $BALANCE, which is less than the minimum balance of $MIN_BALANCE" exit 1 fi diff --git a/programs/squads_multisig_program/Cargo.toml b/programs/squads_multisig_program/Cargo.toml index 170fe2d0..ace8ace5 100644 --- a/programs/squads_multisig_program/Cargo.toml +++ b/programs/squads_multisig_program/Cargo.toml @@ -20,3 +20,4 @@ default = [] anchor-lang = { version = "=0.29.0", features = ["allow-missing-optionals"] } anchor-spl = { version="=0.29.0", features=["token"] } solana-security-txt = "1.1.1" +# \ No newline at end of file