-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 966 Bytes
/
cron.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
name: cron.yml
on:
schedule:
- cron: "0 0 * * *" # Run daily at 00:00 UTC
workflow_dispatch:
permissions:
contents: write
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: oven-sh/setup-bun@v1
- run: bun install
- name: Run script to fetch data and update README.md
run: bun src/index.js
- name: Commit changes to README.md
uses: EndBug/add-and-commit@v9
with:
add: "README.md"
message: "Fetch data and update README"
# Determines the way the action fills missing author name and email. Three options are available:
# - github_actor -> UserName <[email protected]>
# - user_info -> Your Display Name <[email protected]>
# - github_actions -> github-actions <email associated with the github logo>
# Default: github_actor
default_author: github_actions