|
36 | 36 | transaction-data: ${{ steps.prepare.outputs.transaction-data }} |
37 | 37 | safe-address: ${{ steps.prepare.outputs.safe-address }} |
38 | 38 | bridge-address: ${{ steps.prepare.outputs.bridge-address }} |
39 | | - # Note: We'll pass secrets through the next job |
40 | 39 |
|
41 | 40 | steps: |
42 | 41 | - name: Checkout repository |
@@ -103,20 +102,36 @@ jobs: |
103 | 102 | echo "✅ DRY RUN MODE: Transaction prepared successfully" |
104 | 103 | fi |
105 | 104 |
|
106 | | - # ✅ NEW: Wrapper job that bridges the environment secrets to the reusable workflow |
107 | 105 | propose-to-safe-tx: |
108 | 106 | needs: prepare-transaction-calldata |
109 | 107 | runs-on: ubuntu-latest |
110 | | - environment: ${{ inputs.network }} # ✅ This gives access to environment secrets |
| 108 | + environment: ${{ inputs.network }} |
111 | 109 | steps: |
112 | | - - name: Call reusable workflow with secrets |
113 | | - uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/propose-safe-multisig-tx.yml@fix/multisig-rpc-secrets |
| 110 | + - name: Checkout Safe proposal repository |
| 111 | + uses: actions/checkout@v4 |
| 112 | + with: |
| 113 | + repository: iExecBlockchainComputing/github-actions-workflows |
| 114 | + ref: fix/multisig-rpc-secrets |
| 115 | + path: .github-actions |
| 116 | + |
| 117 | + - name: Setup Node.js |
| 118 | + uses: actions/setup-node@v4 |
114 | 119 | with: |
115 | | - safe-address: ${{ needs.prepare-transaction-calldata.outputs.safe-address }} |
116 | | - transaction-to: ${{ needs.prepare-transaction-calldata.outputs.bridge-address }} |
117 | | - transaction-data: ${{ needs.prepare-transaction-calldata.outputs.transaction-data }} |
118 | | - dry-run: ${{ inputs.dry-run }} |
| 120 | + node-version: '20' |
| 121 | + |
| 122 | + - name: Install dependencies |
| 123 | + working-directory: .github-actions/propose-safe-multisig-tx |
| 124 | + run: npm ci |
| 125 | + |
| 126 | + - name: Propose transaction to Safe |
| 127 | + working-directory: .github-actions/propose-safe-multisig-tx |
119 | 128 | env: |
| 129 | + SAFE_ADDRESS: ${{ needs.prepare-transaction-calldata.outputs.safe-address }} |
| 130 | + TRANSACTION_TO: ${{ needs.prepare-transaction-calldata.outputs.bridge-address }} |
| 131 | + TRANSACTION_VALUE: "0" |
| 132 | + TRANSACTION_DATA: ${{ needs.prepare-transaction-calldata.outputs.transaction-data }} |
120 | 133 | RPC_URL: ${{ secrets.RPC_URL }} |
121 | 134 | SAFE_PROPOSER_PRIVATE_KEY: ${{ secrets.SAFE_PROPOSER_PRIVATE_KEY }} |
122 | 135 | SAFE_API_KEY: ${{ secrets.SAFE_API_KEY }} |
| 136 | + DRY_RUN: ${{ inputs.dry-run }} |
| 137 | + run: npm run propose |
0 commit comments