Skip to content

Commit 0402252

Browse files
committed
Test
1 parent d381532 commit 0402252

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/sharing-smart-contract-deploy.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Sharing Smart Contract - Deploy
22

33
on:
4-
push:
5-
branches:
6-
- ci/sharing--refactor-deploy-action
74
workflow_dispatch: # Manual trigger
85
inputs:
96
network:
@@ -47,7 +44,7 @@ jobs:
4744

4845
steps:
4946
- name: Validate target environment
50-
# if: inputs.network != 'hardhat'
47+
if: inputs.network != 'hardhat'
5148
env:
5249
NETWORK: ${{ inputs.network }}
5350
STAGE: ${{ inputs.stage }}
@@ -95,15 +92,18 @@ jobs:
9592
# For Deployment
9693
RPC_URL: ${{ secrets.RPC_URL }}
9794
DEPLOYER_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }}
98-
ADMIN_PRIVATE_KEY: ${{ secrets.DATAPROTECTOR_OWNER_PRIVATEKEY }} # Fix secret name
95+
ADMIN_PRIVATE_KEY: ${{ secrets.DATAPROTECTOR_OWNER_PRIVATEKEY }} # TODO Fix secret name
9996
POCO_ADDRESS: ${{ vars.POCO_ADDRESS }}
10097
DATASET_REGISTRY_ADDRESS: ${{ vars.DATASET_REGISTRY_ADDRESS }}
101-
run: |
102-
DEPLOYMENT_ID="$DEPLOYMENT_ID" \
103-
npm run deploy -- --network ${{ inputs.network }}
98+
# POCO_ADDRESS: '0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f'
99+
# DATASET_REGISTRY_ADDRESS: '0x799DAa22654128d0C64d5b79eac9283008158730'
100+
run: echo "dep id - $DEPLOYMENT_ID." > ignition/deployments/output.log
101+
# run: |
102+
# DEPLOYMENT_ID="$DEPLOYMENT_ID" \
103+
# npm run deploy -- --network ${{ inputs.network }}
104104

105105
- name: Push deployment artifacts to the current branch
106-
if: github.ref != 'refs/heads/main'
106+
if: inputs.network != 'hardhat' && github.ref != 'refs/heads/main'
107107
uses: stefanzweifel/git-auto-commit-action@v5
108108
with:
109109
commit_message: ${{ env.COMMIT_MESSAGE }}
@@ -114,7 +114,7 @@ jobs:
114114

115115
# Since `main` branch is protected, create a PR to push deployment files.
116116
- name: Push deployment artifacts through a pull request
117-
if: github.ref == 'refs/heads/main'
117+
if: inputs.network != 'hardhat' && github.ref == 'refs/heads/main'
118118
uses: peter-evans/create-pull-request@v7
119119
with:
120120
commit-message: ${{ env.COMMIT_MESSAGE }}
@@ -127,7 +127,7 @@ jobs:
127127
draft: true
128128

129129
- name: Verify contracts
130-
if: inputs.network != 'hardhat'
130+
if: false # Temporarily disable verification step
131131
continue-on-error: true
132132
working-directory: packages/sharing-smart-contract
133133
env:

.github/workflows/sharing-smart-contracts-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ jobs:
8989
- name: Upgrade test
9090
working-directory: packages/sharing-smart-contract
9191
env:
92-
DATA_PROTECTOR_SHARING_ADDRESS: 0x1390c3c6a545198809F1C7c5Dd2600ef74D60925
93-
ADD_ONLY_APP_WHITELIST_REGISTRY_ADDRESS: 0x498D324F711b8998Be81818742e268dEE30347c6
92+
DATA_PROTECTOR_SHARING_ADDRESS: '0x1390c3c6a545198809F1C7c5Dd2600ef74D60925'
93+
ADD_ONLY_APP_WHITELIST_REGISTRY_ADDRESS: '0x498D324F711b8998Be81818742e268dEE30347c6'
9494
run: npm run upgrade-local-fork -- --network local-bellecour-fork
9595

9696
# TODO check why the CI does not fail when the following error occurs

0 commit comments

Comments
 (0)