Skip to content

Commit ceadaee

Browse files
portuu3flopez7
andauthored
Fix Python SDK publish workflow (#3781)
Co-authored-by: Francisco López <francislopez977@gmail.com>
1 parent a6df342 commit ceadaee

File tree

8 files changed

+19
-7
lines changed

8 files changed

+19
-7
lines changed

.github/workflows/cd-packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v6
3636
with:
37-
token: ${{ secrets.GH_GITBOOK_TOKEN }}
37+
token: ${{ secrets.RELEASE_GH_TOKEN }}
3838
- name: Setup git identity
3939
run: |
4040
git config --global user.name "github-actions[bot]"

.github/workflows/cd-python-sdk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v6
2727
with:
28-
token: ${{ secrets.GH_GITBOOK_TOKEN }}
28+
token: ${{ secrets.RELEASE_GH_TOKEN }}
2929
- name: Setup git identity
3030
run: |
3131
git config --global user.name "github-actions[bot]"

packages/sdk/python/human-protocol-sdk/human_protocol_sdk/gql/cancel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,6 @@ def get_cancellation_refund_by_escrow_query():
7070
}}
7171
}}
7272
{cancellation_refund_fragment}
73-
""".format(cancellation_refund_fragment=cancellation_refund_fragment)
73+
""".format(
74+
cancellation_refund_fragment=cancellation_refund_fragment
75+
)

packages/sdk/python/human-protocol-sdk/human_protocol_sdk/gql/escrow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ def get_escrow_query():
9797
}}
9898
}}
9999
{escrow_fragment}
100-
""".format(escrow_fragment=escrow_fragment)
100+
""".format(
101+
escrow_fragment=escrow_fragment
102+
)
101103

102104

103105
def get_status_query(

packages/sdk/python/human-protocol-sdk/human_protocol_sdk/gql/reward.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
}}
1515
}}
1616
{reward_added_event_fragment}
17-
""".format(reward_added_event_fragment=reward_added_event_fragment)
17+
""".format(
18+
reward_added_event_fragment=reward_added_event_fragment
19+
)

packages/sdk/python/human-protocol-sdk/human_protocol_sdk/gql/transaction.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,6 @@ def get_transaction_query() -> str:
103103
}}
104104
}}
105105
{transaction_fragment}
106-
""".format(transaction_fragment=transaction_fragment)
106+
""".format(
107+
transaction_fragment=transaction_fragment
108+
)

packages/sdk/python/human-protocol-sdk/human_protocol_sdk/gql/worker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def get_worker_query() -> str:
1818
}}
1919
}}
2020
{worker_fragment}
21-
""".format(worker_fragment=worker_fragment)
21+
""".format(
22+
worker_fragment=worker_fragment
23+
)
2224

2325

2426
def get_workers_query(filter: WorkerFilter) -> str:

packages/sdk/python/human-protocol-sdk/scripts/build-contracts.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ REPO_ROOT="$(cd "${SCRIPT_DIR}/../../../../.." && pwd)"
66

77
yarn --cwd "$REPO_ROOT" workspaces focus @human-protocol/python-sdk
88

9+
yarn --cwd "$REPO_ROOT" workspaces foreach -Rpt --from @human-protocol/python-sdk run build
10+
911
rm -rf artifacts
1012
cp -r "${REPO_ROOT}/node_modules/@human-protocol/core/artifacts" .

0 commit comments

Comments
 (0)