File tree Expand file tree Collapse file tree 3 files changed +97
-0
lines changed
Expand file tree Collapse file tree 3 files changed +97
-0
lines changed Original file line number Diff line number Diff line change 1+ name : issue
2+
3+ on :
4+ issues :
5+ types : [opened, edited]
6+
7+ jobs :
8+ auto_close_issues :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v1
13+ - name : Automatically close issues that don't follow the issue template
14+ uses :
lucasbento/[email protected] 15+ with :
16+ github-token : ${{ secrets.ISSUE_TOKEN }}
17+ issue-close-message : " @${issue.user.login}: 你好! :wave:\n\n 因为你没有按模板新建issue,所以此issue已被自动关闭!请重新按issue模板新建issue" # optional property
18+ closed-issues-label : " 🙁 未按模板新建issue" # optional property
Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ workflow_dispatch :
9+
10+ jobs :
11+ publish :
12+ runs-on : ubuntu-latest
13+ permissions :
14+ contents : write
15+ steps :
16+ - uses : actions/checkout@v3
17+ with :
18+ path : source
19+ submodules : true
20+
21+ - name : Remove git information from destination repository
22+ run : |
23+ mkdir dest.git
24+ cp -r source/* dest.git/
25+ cd dest.git
26+ rm -rf .git
27+ rm -rf .gitignore
28+ rm -rf .github
29+ rm -rf .gitmodules
30+
31+ - name : Zip folder and save
32+ run : |
33+ mkdir -p Arduino-PY32
34+ cp -r dest.git/* Arduino-PY32/
35+ zip -r PY32-${GITHUB_REF#refs/tags/}.zip Arduino-PY32
36+
37+ - uses : ncipollo/release-action@v1
38+ with :
39+ artifacts : " *.zip"
40+ allowUpdates : true
41+
42+ - name : Send repository_dispatch event to package json
43+ run : |
44+ curl -X POST https://api.github.com/repos/PY32Duino/Arduino-pack-json-ci/dispatches \
45+ -H 'Accept: application/vnd.github.everest-preview+json' \
46+ -u ${{ secrets.USER_TOKEN }} \
47+ --data '{"event_type": "release"}'
Original file line number Diff line number Diff line change 1+ name : test
2+
3+ on :
4+ push :
5+
6+ workflow_dispatch :
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v3
13+ - name : environment prepare
14+ run : |
15+ cd ~
16+ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s 0.33.0
17+ ~/bin/arduino-cli version
18+ ~/bin/arduino-cli config init
19+ - name : install package
20+ run : |
21+ ~/bin/arduino-cli core update-index --additional-urls https://github.com/Air-duino/Arduino-pack-json-ci/releases/download/Nightly/package_air_index.json
22+ ~/bin/arduino-cli core install AirM2M:[email protected] --additional-urls https://github.com/Air-duino/Arduino-pack-json-ci/releases/download/Nightly/package_air_index.json 23+ - name : replace package
24+ run : |
25+ rm -rf ~/.arduino15/packages/AirM2M/hardware/AirMCU/0.4.4/
26+ git submodule update --init --recursive
27+ cp -r /home/runner/work/Arduino-AirMCU/Arduino-AirMCU ~/.arduino15/packages/AirM2M/hardware/AirMCU/0.4.4/
28+ - name : build
29+ run : |
30+ cd libraries
31+ python test.py
32+
You can’t perform that action at this time.
0 commit comments