-
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (37 loc) · 1.03 KB
/
scheduler.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
39
40
41
42
43
44
name: UHB Test Scheduler
on:
schedule:
- cron: "48 4 * * *"
env:
GIT_NAME: "${{ secrets.GIT_BOT_NAME }}"
GIT_EMAIL: "${{ secrets.GIT_BOT_EMAIL }}"
GITHUB_TOKEN: "${{ secrets.BOT_REPO_PAT }}"
jobs:
trigger:
name: Trigger action
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
python_version:
- "3.11"
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Clone repository
with:
token: "${{ secrets.BOT_REPO_PAT }}"
- name: Create local change
run: |
date +%s > "${{ github.workspace }}/.trigger"
- name: Commit changes
run: |
git config --local user.email "$GIT_EMAIL"
git config --local user.name "$GIT_NAME"
git commit -m "[Ultimate Hosts Blacklist][Test Scheduler]" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.BOT_REPO_PAT }}
branch: ${{ github.ref }}