Merge pull request #2844 from zekraken-bot/feature/autorange-paramete… #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto Upload Payloads to Safe | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "OmniAutoOps/**/*.json" | |
| - "!OmniAutoOps/archive/**" | |
| workflow_dispatch: | |
| inputs: | |
| payload-file: | |
| description: "Path to a specific payload JSON (e.g. OmniAutoOps/my-payload.json)" | |
| required: true | |
| type: string | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: auto-upload-payloads-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| upload: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'balancer/multisig-ops' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Create archive commit token | |
| id: archive-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: ${{ secrets.MAXYZ_ACTIONS_APP_ID }} | |
| private-key: ${{ secrets.MAXYZ_ACTIONS_PRIVATE_KEY }} | |
| permission-contents: write | |
| - name: Create action checkout token | |
| id: action-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: ${{ secrets.MAXYZ_ACTIONS_APP_ID }} | |
| private-key: ${{ secrets.MAXYZ_ACTIONS_PRIVATE_KEY }} | |
| owner: maxyz-xyz | |
| repositories: safe-queue-action | |
| permission-contents: read | |
| - name: Checkout safe-queue-action | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: maxyz-xyz/safe-queue-action | |
| ref: v2 | |
| token: ${{ steps.action-token.outputs.token }} | |
| path: .github/actions/safe-queue-action | |
| persist-credentials: false | |
| - name: Upload payloads to Safe | |
| uses: ./.github/actions/safe-queue-action | |
| with: | |
| payload-directory: ${{ github.event_name == 'push' && 'OmniAutoOps/' || '' }} | |
| payload-file: ${{ github.event.inputs.payload-file || '' }} | |
| archive-directory: OmniAutoOps/archive/ | |
| archive-commit-token: ${{ steps.archive-token.outputs.token }} | |
| drpc-key: ${{ secrets.DRPC_KEY }} | |
| signer-private-key: ${{ secrets.SAFE_QUEUE_ACTION_PROPOSER }} | |
| nested-safe: "0xBeF27037bC6311b96635E5e9Af3A73EBF6Ca8878" | |
| tenderly-access-key: ${{ secrets.TENDERLY_ACCESS_KEY }} | |
| tenderly-account-name: ${{ secrets.TENDERLY_ACCOUNT_NAME }} | |
| tenderly-project-name: ${{ secrets.TENDERLY_PROJECT_NAME }} |