File tree 3 files changed +20
-1
lines changed
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change 38
38
PIP_EXTRA_INDEX_URL : " https://dl.espressif.com/pypi"
39
39
steps :
40
40
- name : Checkout repository
41
- uses : actions/checkout@master
41
+ uses : actions/checkout@v3
42
+ with :
43
+ ref : ${{ github.event.pull_request.head.ref }}
42
44
- name : Set up Python 3.8
43
45
# Skip setting python on ARM because of missing compatibility: https://github.com/actions/setup-python/issues/108
44
46
if : matrix.os != 'ARM' && matrix.os != 'ARM64'
64
66
shell : bash
65
67
run : |
66
68
./${{ 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
67
77
- name : Archive artifact
68
78
uses : actions/upload-artifact@master
69
79
with :
You can’t perform that action at this time.
0 commit comments