Skip to content

Commit

Permalink
changed variable names for file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ToluwalopeAyo committed Aug 28, 2023
1 parent 51494d0 commit 71b7ba7
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions .github/workflows/dispatch-render-juno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}"}'
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 }}"}'

0 comments on commit 71b7ba7

Please sign in to comment.