-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (28 loc) · 923 Bytes
/
main.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
name: Update JSON
on:
schedule:
- cron: "0 0 * * Sun"
workflow_dispatch:
push:
paths:
- ".github/**"
jobs:
update_apps_list:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run PowerShell script
shell: pwsh
run: .github/scripts/script.ps1
- name: Commit and push changes
run: |
if ! git diff --quiet; then
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add .
git commit -m "Update install_apps.json"
git push
else
echo "::warning:: No changes to commit."
fi