@@ -20,12 +20,11 @@ jobs:
20
20
uses : actions/checkout@v4
21
21
with :
22
22
fetch-depth : 2
23
- ref : ${{ github.event.pull_request.head.ref }}
23
+ repository : ${{ github.event.pull_request.head.repo.full_name }}
24
24
- name : Verify Python Tools Changed
25
25
uses : tj-actions/changed-files@v41
26
26
id : verify-changed-files
27
27
with :
28
- fetch_depth : ' 2'
29
28
since_last_remote_commit : ' true'
30
29
files : |
31
30
tools/get.py
72
71
DISTPATH : pytools-${{ matrix.TARGET }}
73
72
PIP_EXTRA_INDEX_URL : " https://dl.espressif.com/pypi"
74
73
steps :
74
+ - id : create_token
75
+ uses : tibdex/github-app-token@v2
76
+ env :
77
+ ID : ${{ secrets.TOOLS_UPLOAD_APP_ID }}
78
+ TOKEN : ${{ secrets.TOOLS_UPLOAD_APP_TOKEN }}
79
+ with :
80
+ app_id : " ${{ env.ID }}"
81
+ private_key : " ${{ env.TOKEN }}"
82
+
75
83
- name : List changed tools
76
84
shell : bash
77
85
run : |
89
97
- name : Checkout repository
90
98
uses : actions/checkout@v4
91
99
with :
92
- token : ${{ secrets.TOOLS_UPLOAD_PAT }}
93
- ref : ${{ github.event.pull_request.head.ref }}
100
+ token : ${{ steps.create_token.outputs.token }}
94
101
- name : Set up Python 3.8
95
102
# Skip setting python on ARM because of missing compatibility: https://github.com/actions/setup-python/issues/108
96
103
if : matrix.os != 'ARM' && matrix.os != 'ARM64'
@@ -108,7 +115,7 @@ jobs:
108
115
pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=.github/pytools/espressif.ico tools/$tool.py
109
116
done
110
117
- name : Sign binaries
111
- if : matrix.os == 'windows-latest' && env.CERTIFICATE != '' && env.CERTIFICATE_PASSWORD != ''
118
+ if : matrix.os == 'windows-latest' && env.CERTIFICATE != ''
112
119
env :
113
120
CERTIFICATE : ${{ secrets.CERTIFICATE }}
114
121
CERTIFICATE_PASSWORD : ${{ secrets.CERTIFICATE_PASSWORD }}
0 commit comments