From 6046c497873b781320199ae5af2c1071e8c7a8bb Mon Sep 17 00:00:00 2001 From: aminechakr Date: Fri, 24 Jan 2025 20:51:13 +0100 Subject: [PATCH] update: workflow --- .github/workflows/dispatch-baremetal.yml | 1 + .github/workflows/dispatch.yml | 59 ------------------------ 2 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 .github/workflows/dispatch.yml diff --git a/.github/workflows/dispatch-baremetal.yml b/.github/workflows/dispatch-baremetal.yml index e8030dc3c1..ab652295b4 100644 --- a/.github/workflows/dispatch-baremetal.yml +++ b/.github/workflows/dispatch-baremetal.yml @@ -22,6 +22,7 @@ on: options: - paseo - westend + - polkadot instance: description: 'Instance' required: true diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml deleted file mode 100644 index eb991fa0a2..0000000000 --- a/.github/workflows/dispatch.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Dispatch workflow to deploy Gossamer nodes - -on: - workflow_dispatch: - inputs: - commit: - description: 'commit' - required: true - nodeType: - description: 'Node type' - required: true - default: 'genesis' - type: choice - options: - - snapshot - - genesis - cluster: - description: 'Cluster' - default: 'shared-gossamer' - type: choice - options: - - shared-gossamer - - shared-gossamer-2 - required: true - chain: - description: 'Chain' - required: true - default: 'westend' - type: choice - options: - - paseo - - westend - -jobs: - dispatch: - runs-on: ubuntu-latest - steps: - - name: Get Token - id: get_workflow_token - uses: peter-murray/workflow-application-token-action@v4 - with: - application_id: ${{ vars.APPLICATION_ID }} - application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }} - - - name: Dispatch Repository Event for ${{ github.event.inputs.chain }} - uses: peter-evans/repository-dispatch@v3 - with: - token: ${{ steps.get_workflow_token.outputs.token }} - repository: Chainsafe/infrastructure-general - event-type: deploy-gossamer-${{ github.event.inputs.nodeType }} - client-payload: | - { - "ref": "refs/heads/main", - "inputs": { - "commit": "${{ github.event.inputs.commit }}", - "chain": "${{ github.event.inputs.chain }}", - "cluster": "${{ github.event.inputs.cluster }}" - } - }