generated from SunsetMkt/BeyondSilence
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.23 KB
/
run.yaml
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
39
name: Run BeyondSilence
on:
workflow_dispatch: # Manually trigger
schedule:
- cron: "0 12 * * *" # Every day at 12:00 (UTC) or 4:00 (UTC+8)
permissions: write-all
jobs:
workflow:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Installing requirements
continue-on-error: true # Don't fail the workflow, probably already satisfied
run: |
pip install -r requirements.txt
- name: Run BeyondSilence
env:
BEYONDSILENCE_CONFIG: ${{ secrets.BEYONDSILENCE_CONFIG }}
BEYONDSILENCE_KEYS: ${{ secrets.BEYONDSILENCE_KEYS }}
run: |
python -m BeyondSilence
- name: Upload output
uses: actions/upload-artifact@v4
continue-on-error: true # Don't fail the workflow
with:
name: output.txt
path: output.txt
- name: Commit and push output
continue-on-error: true # Don't fail the workflow
run: |
git add .
git config --global user.email "[email protected]"
git config --global user.name "Github Bot"
git commit -m "Update by Github Action"
git push