Skip to content

Commit

Permalink
Update notify_explorer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
h1sk1 authored Mar 28, 2023
1 parent 3e8db6a commit 6483978
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/notify_explorer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,33 @@ jobs:
steps:
- name: Call Mainnet Explorer API
id: MainnetRequest
if: ${{ contains(github.event.head_commit.modified, "mainnet_colleciton_list.json") }}
if: ${{ contains(github.event.head_commit.modified, 'mainnet_colleciton_list.json') }}
uses: fjogeleit/http-request-action@v1
with:
url: 'https://{{ secrets.MAINNET_URL }}/api/v1'
method: 'PATCH'
customHeaders: '{"Content-Type": "application/json"}'
data: '{"apiKey": {{ secrets.MAINNET_APIKEY }}, "function": "updateLists"}'
data: '{"apiKey": "{{ secrets.MAINNET_APIKEY }}", "function": "updateLists"}'

- name: Call Testnet Explorer API
id: TestnetRequest
if: ${{ contains(github.event.head_commit.modified, "testnet_colleciton_list.json") }}
if: ${{ contains(github.event.head_commit.modified, 'testnet_colleciton_list.json') }}
uses: fjogeleit/http-request-action@v1
with:
url: 'https://{{ secrets.TESTNET_URL }}/api/v1'
method: 'PATCH'
customHeaders: '{"Content-Type": "application/json"}'
data: '{"apiKey": {{ secrets.TESTNET_APIKEY }}, "function": "updateLists"}'
data: '{"apiKey": "{{ secrets.TESTNET_APIKEY }}", "function": "updateLists"}'

- name: Call Devnet Explorer API
id: DevnetRequest
if: ${{ contains(github.event.head_commit.modified, "devnet_colleciton_list.json") }}
if: ${{ contains(github.event.head_commit.modified, 'devnet_colleciton_list.json') }}
uses: fjogeleit/http-request-action@v1
with:
url: 'https://{{ secrets.DEVNET_URL }}/api/v1'
method: 'PATCH'
customHeaders: '{"Content-Type": "application/json"}'
data: '{"apiKey": {{ secrets.DEVNET_APIKEY }}, "function": "updateLists"}'
data: '{"apiKey": "{{ secrets.DEVNET_APIKEY }}", "function": "updateLists"}'

- name: Show responses
run: |
Expand Down

0 comments on commit 6483978

Please sign in to comment.