Skip to content

Commit 8127198

Browse files
committed
Attempt to push packaged exe to tools
1 parent 988eb3f commit 8127198

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

Diff for: .github/scripts/upload_py_tools.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
echo "Pushing as $GITHUB_ACTOR"
3+
git config --global github.user "$GITHUB_ACTOR"
4+
git config --global user.name "$GITHUB_ACTOR"
5+
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
6+
git add tools/get.exe
7+
git commit -m "Push binary to tools"
8+
git push
9+

Diff for: .github/workflows/build_py_tools.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
PIP_EXTRA_INDEX_URL: "https://dl.espressif.com/pypi"
3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@master
41+
uses: actions/checkout@v3
42+
with:
43+
ref: ${{ github.event.pull_request.head.ref }}
4244
- name: Set up Python 3.8
4345
# Skip setting python on ARM because of missing compatibility: https://github.com/actions/setup-python/issues/108
4446
if: matrix.os != 'ARM' && matrix.os != 'ARM64'
@@ -64,6 +66,14 @@ jobs:
6466
shell: bash
6567
run: |
6668
./${{ env.DISTPATH }}/get${{ matrix.EXTEN }} -h
69+
# Commit and push changed files.
70+
- name: Push binary to tools
71+
if: matrix.os == 'windows-latest'
72+
env:
73+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
74+
run: |
75+
cp -Force ./${{ env.DISTPATH }}/get.exe tools/get.exe
76+
bash .github/scripts/upload_py_tools.sh
6777
- name: Archive artifact
6878
uses: actions/upload-artifact@master
6979
with:

Diff for: tools/get.exe

1.55 MB
Binary file not shown.

0 commit comments

Comments
 (0)