generated from futureware-tech/template
-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (36 loc) · 991 Bytes
/
print-devices.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
38
name: 'print-devices'
on:
schedule:
- cron: '13 4,16 * * *'
jobs:
print:
strategy:
fail-fast: false
max-parallel: 1
matrix:
os:
- macos-13
- macos-14
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: actions/checkout@v4
with:
repository: ${{ github.repository }}.wiki
path: Wiki
token: ${{ secrets.FASTLANE_UPDATE_GITHUB_TOKEN }}
- run: >
grep '${{ matrix.os }}' Home.md ||
echo '- [`${{ matrix.os }}`](Devices-${{ matrix.os }})' >>
Home.md
working-directory: Wiki
- run: npm run print-devices -- Wiki/Devices-${{ matrix.os }}.md
- run: |
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m 'Update the list of devices'
git push
fi
working-directory: Wiki