Skip to content

Commit

Permalink
ci(MO-10789): switch to Etherscan proxy (#96)
Browse files Browse the repository at this point in the history
* ci(MO-10789): switch to Etherscan proxy

* ci(MO-10789): modify a descriptor for test

* ci(MO-10789): remove secrets step

* ci(MO-10789): add debug step

* ci(MO-10789): update host name

* ci(MO-10789): test more

* ci(MO-10789): add debug for v2 API

* ci(MO-10789): add DEBUG

* Update .github/workflows/pull_request.yml

* ci(MO-10789): remove debug stuff
  • Loading branch information
jnicoulaud-ledger authored Dec 10, 2024
1 parent 639528b commit c54acf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
ETHERSCAN_API_HOST: etherscan.api.live.ledger.com

jobs:
validate_descriptors:
name: 🔎 validate descriptors
Expand All @@ -26,14 +29,6 @@ jobs:
timeout-minutes: 10
uses: actions/checkout@v4

- name: Get API keys
timeout-minutes: 10
shell: bash
run: |
cat << EOF | jq -r 'to_entries[] | select(.key|endswith("_API_KEY")) | "\(.key)=\(.value)"' >> "$GITHUB_ENV"
${{ toJSON(secrets) }}
EOF
- name: Setup python
timeout-minutes: 10
uses: actions/setup-python@v5
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
ETHERSCAN_API_HOST: proxyetherscan.api.live.ledger.com

jobs:
validate_descriptors:
name: 🔎 validate descriptors
Expand All @@ -29,15 +32,6 @@ jobs:
registry/**/eip712-*.json
registry/**/calldata-*.json
- name: Get API keys
timeout-minutes: 10
if: steps.changed-descriptor-files.outputs.any_changed == 'true'
shell: bash
run: |
cat << EOF | jq -r 'to_entries[] | select(.key|endswith("_API_KEY")) | "\(.key)=\(.value)"' >> "$GITHUB_ENV"
${{ toJSON(secrets) }}
EOF
- name: Setup python
timeout-minutes: 10
if: steps.changed-descriptor-files.outputs.any_changed == 'true'
Expand Down

0 comments on commit c54acf8

Please sign in to comment.