Skip to content

Commit ad7e456

Browse files
committed
fix(README): make example more generic
1 parent 75d6bf3 commit ad7e456

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@
77
Minimal workflow example
88

99
```yml
10-
name: Update REST API endpoint methods
10+
Name: Nightly update
1111
on:
12-
repository_dispatch:
13-
types: [octokit-routes-release]
12+
schedule:
13+
# https://crontab.guru/every-night-at-midnight
14+
- cron: "0 0 * * *"
1415

1516
jobs:
1617
update_routes:
1718
runs-on: ubuntu-latest
1819
steps:
1920
- uses: actions/checkout@master
20-
- run: "date > test.txt" # create or update a test.txt file
21+
- run: "date > datetime.txt" # create or update a test.txt file
2122
- uses: gr2m/create-or-update-pull-request-action@v1
2223
env:
2324
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)