Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
ci: fix base file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
filo87 committed Dec 21, 2023
1 parent 4f1646e commit fcfde59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/subql_deploy_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ jobs:
run: |
cp chains-cfg/_root.yaml project-centrifuge.yaml
cp chains-eth/_root.yaml project-ethereum.yaml
cp chains-base/_root.yaml project-_root.yaml
cp chains-base/_root.yaml project-base.yaml
yarn codegen
- name: SubQL CLI Version
run: yarn subql --version
- name: Generate new project-centrifuge.yaml
run: '[ -e chains-cfg/$CHAIN_ID.yaml ] && yq ". *=d load(\"chains-cfg/$CHAIN_ID.yaml\")" chains-cfg/_root.yaml > project-centrifuge.yaml || return 0'
- name: Generate new project-ethereum.yaml
run: '[ -e chains-eth/$CHAIN_ID.yaml ] && yq ". *=d load(\"chains-eth/$CHAIN_ID.yaml\")" chains-eth/_root.yaml > project-ethereum.yaml || return 0'
- name: Generate new project-_root.yaml
run: '[ -e chains-cfg/$CHAIN_ID.yaml ] && yq ". *=d load(\"chains-base/$CHAIN_ID.yaml\")" chains-eth/_root.yaml > project-_root.yaml || return 0'
- name: Generate new project-base.yaml
run: '[ -e chains-cfg/$CHAIN_ID.yaml ] && yq ". *=d load(\"chains-base/$CHAIN_ID.yaml\")" chains-eth/_root.yaml > project-base.yaml || return 0'
- name: Extract Chain Parameters to ENV
run: |
echo "SUBQL_PROJ_NAME=$(yq '.name' project-centrifuge.yaml)" >> $GITHUB_ENV
Expand All @@ -69,8 +69,8 @@ jobs:
echo "SUBQL_CFG_DICT=$(yq '.network.dictionary' project-centrifuge.yaml)" >> $GITHUB_ENV
echo "SUBQL_ETH_ENDPOINT=$(yq '.network.endpoint' project-ethereum.yaml)" >> $GITHUB_ENV
echo "SUBQL_ETH_DICT=$(yq '.network.dictionary' project-ethereum.yaml)" >> $GITHUB_ENV
echo "SUBQL_BASE_ENDPOINT=$(yq '.network.endpoint' project-_root.yaml)" >> $GITHUB_ENV
echo "SUBQL_BASE_DICT=$(yq '.network.dictionary' project-_root.yaml)" >> $GITHUB_ENV
echo "SUBQL_BASE_ENDPOINT=$(yq '.network.endpoint' project-base.yaml)" >> $GITHUB_ENV
echo "SUBQL_BASE_DICT=$(yq '.network.dictionary' project-base.yaml)" >> $GITHUB_ENV
- name: Generate new subquery-multichain.yaml
run: |
cat > subquery-multichain.yaml <<'EOF'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
run: yq ". *=d load(\"chains-cfg/$CHAIN_ID.yaml\")" chains-cfg/_root.yaml > project-centrifuge.yaml
- name: Generate new project-ethereum.yaml
run: yq ". *=d load(\"chains-eth/$CHAIN_ID.yaml\")" chains-eth/_root.yaml | envsubst > project-ethereum.yaml
- name: Generate new project-_root.yaml
run: yq ". *=d load(\"chains-base/$CHAIN_ID.yaml\")" chains-eth/_root.yaml | envsubst > project-_root.yaml
- name: Generate new project-base.yaml
run: yq ". *=d load(\"chains-base/$CHAIN_ID.yaml\")" chains-eth/_root.yaml | envsubst > project-base.yaml
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion subquery-multichain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ query:
version: '2'
projects:
- project-centrifuge.yaml
- project-_root.yaml
- project-base.yaml
- project-ethereum.yaml

0 comments on commit fcfde59

Please sign in to comment.