18
18
all_changed_files : ${{ steps.verify-changed-files.outputs.all_changed_files }}
19
19
steps :
20
20
- name : Checkout repository
21
- uses : actions/checkout@v4
21
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22
22
with :
23
23
fetch-depth : 2
24
24
ref : ${{ github.event.pull_request.head.ref }}
30
30
echo "Make sure you are using a branch inside the repository and not a fork."
31
31
32
32
- name : Verify Python Tools Changed
33
- uses : tj-actions/changed-files@v41
33
+ uses : tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
34
34
id : verify-changed-files
35
35
with :
36
36
fetch_depth : " 2"
40
40
tools/espota.py
41
41
tools/gen_esp32part.py
42
42
tools/gen_insights_package.py
43
+
43
44
- name : List all changed files
44
45
shell : bash
45
46
run : |
@@ -88,25 +89,30 @@ jobs:
88
89
for tool in ${{ env.CHANGED_TOOLS }}; do
89
90
echo "tool $tool was changed"
90
91
done
92
+
91
93
- name : Checkout repository
92
- uses : actions/checkout@v4
94
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
93
95
with :
94
96
token : ${{ secrets.TOOLS_UPLOAD_PAT }}
95
97
ref : ${{ github.event.pull_request.head.ref }}
98
+
96
99
- name : Set up Python 3.8
97
- uses : actions/setup-python@master
100
+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.0.4
98
101
with :
99
102
python-version : 3.8
103
+
100
104
- name : Install dependencies
101
105
run : |
102
106
python -m pip install --upgrade pip
103
107
pip install pyinstaller requests
108
+
104
109
- name : Build with PyInstaller
105
110
shell : bash
106
111
run : |
107
112
for tool in ${{ env.CHANGED_TOOLS }}; do
108
113
pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=.github/pytools/espressif.ico tools/$tool.py
109
114
done
115
+
110
116
- name : Sign binaries
111
117
if : matrix.os == 'windows-latest'
112
118
env :
@@ -119,12 +125,14 @@ jobs:
119
125
{
120
126
./.github/pytools/Sign-File.ps1 -Path ./${{ env.DISTPATH }}/$node.exe
121
127
}
128
+
122
129
- name : Test binaries
123
130
shell : bash
124
131
run : |
125
132
for tool in ${{ env.CHANGED_TOOLS }}; do
126
133
./${{ env.DISTPATH }}/$tool${{ matrix.EXTEN }} -h
127
134
done
135
+
128
136
- name : Push binary to tools
129
137
if : matrix.os == 'windows-latest'
130
138
env :
@@ -135,8 +143,9 @@ jobs:
135
143
cp -f ./${{ env.DISTPATH }}/$tool.exe tools/$tool.exe
136
144
done
137
145
bash .github/scripts/upload_py_tools.sh "${{ env.CHANGED_TOOLS }}"
146
+
138
147
- name : Archive artifact
139
- uses : actions/upload-artifact@master
148
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
140
149
with :
141
150
name : ${{ env.DISTPATH }}
142
151
path : ${{ env.DISTPATH }}
0 commit comments