-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.3 KB
/
random-tale-of-kieu.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
45
name: random-tale-of-kieu
on:
# Run automatically everyday at 00:00
schedule:
- cron: "0 0 * * *"
# Allows to manually run the job at any time
workflow_dispatch:
# Run on every push or pull request on main branch
push:
branches: [ "main" ]
permissions:
contents: write
# Only a single workflow in the same concurrency will run at the same time
concurrency:
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
generate_wallpaper:
name: Get random quotes from The Tale of Kieu - Nguyen Du
runs-on: ubuntu-latest
steps:
# Checkout the main branch
- uses: actions/checkout@v4
# Uses action in the root directory to get random Tale of Kieu
- name: The random quotes from The Tale of Kieu
id: kieu
uses: huuquyet/random-tale-of-kieu@main
# Push the random Tale of Kieu to main branch
# Note: the following account information will not work on GHES
- name: Push the random quotes from The Tale of Kieu to main branch
id: push
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m ":robot: The random quotes from The Tale of Kieu [skip ci]"
git push