-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (35 loc) · 1.02 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Update binaries
on:
workflow_dispatch:
schedule:
- cron: "42 1 * * 0"
jobs:
build-and-commit:
runs-on: ubuntu-latest
strategy:
matrix:
version: [release-v5.0, release-v5.1, release-v5.2, release-v5.3, latest]
steps:
- uses: actions/checkout@v4
- name: Cache ccache data
uses: actions/cache@v4
with:
path: cache
key: ${{ runner.os }}-ccache-${{ matrix.version }}
restore-keys: ${{ runner.os }}-ccache-${{ matrix.version }}
- name: Rebuild binaries
run: |
./build.sh
env:
BUILD_IDF_VERSION: ${{ matrix.version }}
- name: Commit changes
run: |
git pull
git add -A
git config user.email "[email protected]"
git config user.name "Wokwi Builder"
if ! git diff-index --quiet HEAD; then
git commit -m "chore: autobuild ${{ matrix.version }} $(date -u +%Y-%m-%dT%H:%M:%SZ)"
fi
- name: Push changes
run: git push