From 71b7ba7f9fc96cc2b7b3e63f21323ea350dcce9f Mon Sep 17 00:00:00 2001 From: Toluwalope Date: Mon, 28 Aug 2023 11:13:17 +0100 Subject: [PATCH] changed variable names for file paths --- .github/workflows/dispatch-render-juno.yml | 35 ++++------------------ 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/.github/workflows/dispatch-render-juno.yml b/.github/workflows/dispatch-render-juno.yml index 6b8aa6e7db..323dbc912e 100644 --- a/.github/workflows/dispatch-render-juno.yml +++ b/.github/workflows/dispatch-render-juno.yml @@ -7,10 +7,10 @@ on: - juno-dev-gitaction env: EVENT_NAME: juno-dev - VALUES1_FILE: apps/juno-node/overlays/dev-goerli-1/config.yaml - VALUES2_FILE: apps/juno-node/overlays/dev-goerli-2/config.yaml - VALUES3_FILE: apps/juno-node/overlays/dev-integration/config.yaml - VALUES4_FILE: apps/juno-node/overlays/dev-mainnet/config.yaml + GOERLI: apps/juno-node/overlays/dev-goerli-1/config.yaml + GOERLI2: apps/juno-node/overlays/dev-goerli-2/config.yaml + TESTNET: apps/juno-node/overlays/dev-integration/config.yaml + MAINNET: apps/juno-node/overlays/dev-mainnet/config.yaml permissions: id-token: write @@ -45,36 +45,13 @@ jobs: platforms: 'linux/amd64' tags: nethermind/juno:${{env.IMAGE_TAG}} - #- name: Repository Dispatch - # env: - # IMAGE_TAG: ${{ github.sha }} - # EVENT_NAME: ${{ env.EVENT_NAME }} - # VALUES1_FILE: ${{ env.VALUES1_FILE }} - # VALUES2_FILE: ${{ env.VALUES2_FILE }} - # VALUES3_FILE: ${{ env.VALUES3_FILE }} - # VALUES4_FILE: ${{ env.VALUES4_FILE }} - # ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} - - # run: | - # curl -v -L \ - # -X POST \ - # -H "Authorization: Bearer $ACCESS_TOKEN" \ - # -H "X-GitHub-Api-Version: 2022-11-28" \ - # https://api.github.com/repos/NethermindEth/argo/dispatches \ - # --data '{"event_type": "${{ env.EVENT_NAME }}", "client_payload": {"name": "${{ env.EVENT_NAME }}", "file1_path": "${{ env.VALUES1_FILE }}", "file2_path": "${{ env.VALUES2_FILE }}", "file3_path": "${{ env.VALUES3_FILE }}", "file4_path": "${{ env.VALUES4_FILE }}", "tag": "${{ env.IMAGE_TAG }}"}}' - - - name: Repository Dispatch env: IMAGE_TAG: ${{ github.sha }} - EVENT_NAME: ${{ env.EVENT_NAME }} - VALUES1_FILE: ${{ env.VALUES1_FILE }} - VALUES2_FILE: ${{ env.VALUES2_FILE }} - VALUES3_FILE: ${{ env.VALUES3_FILE }} - VALUES4_FILE: ${{ env.VALUES4_FILE }} uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.ACCESS_TOKEN }} repository: NethermindEth/argo event-type: ${{ env.EVENT_NAME }} - client-payload: '{"name": "${{ env.EVENT_NAME }}", "file1_path": "${{ env.VALUES1_FILE }}", "file2_path": "${{ env.VALUES2_FILE }}", "file3_path": "${{ env.VALUES3_FILE }}", "file4_path": "${{ env.VALUES4_FILE }}", "tag": "${{ env.IMAGE_TAG }}"}' \ No newline at end of file + client-payload: '{"name": "${{ env.EVENT_NAME }}", "goerli_config": "${{ env.GOERLI }}", "goerli2_config": "${{ env.GOERLI2 }}", "testnet_config": "${{ env.TESTNET }}", "mainnet_config": "${{ env.MAINNET }}", "tag": "${{ env.IMAGE_TAG }}"}' +