Skip to content

Commit 40ae463

Browse files
committed
ci(tools): Fix pushing python tools
1 parent cc40edb commit 40ae463

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build_py_tools.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ jobs:
7272
DISTPATH: pytools-${{ matrix.TARGET }}
7373
PIP_EXTRA_INDEX_URL: "https://dl.espressif.com/pypi"
7474
steps:
75+
- id: create_token
76+
uses: tibdex/github-app-token@v2
77+
with:
78+
app_id: ${{ secrets.TOOLS_UPLOAD_APP_ID }}
79+
private_key: ${{ secrets.TOOLS_UPLOAD_APP_TOKEN }}
80+
7581
- name: List changed tools
7682
shell: bash
7783
run: |
@@ -89,7 +95,7 @@ jobs:
8995
- name: Checkout repository
9096
uses: actions/checkout@v4
9197
with:
92-
token: ${{ secrets.TOOLS_UPLOAD_PAT }}
98+
token: ${{ steps.create_token.outputs.token }}
9399
ref: ${{ github.event.pull_request.head.ref }}
94100
- name: Set up Python 3.8
95101
# Skip setting python on ARM because of missing compatibility: https://github.com/actions/setup-python/issues/108

0 commit comments

Comments
 (0)