There was an error while loading. Please reload this page.
1 parent 7a2c064 commit f8cafadCopy full SHA for f8cafad
1 file changed
.github/workflows/github_automatic_update.yaml
@@ -1 +1,27 @@
1
+name: GitHub Automatic Update
2
3
+on:
4
+ workflow_dispatch:
5
+ schedule:
6
+ - cron: "0 0 * * *"
7
+
8
+permissions:
9
+ contents: read
10
11
+jobs:
12
+ run_cron_github:
13
+ runs-on: ubuntu-latest
14
+ timeout-minutes: 180
15
+ env:
16
+ GH_API_KEY: ${{ secrets.GITHUB_TOKEN }}
17
+ DATABASE_URL: ${{ secrets.DATABASE_URL }}
18
+ API_KEY: ${{ secrets.API_KEY }}
19
+ steps:
20
+ - name: Download cron-github binary
21
+ run: wget -O cron-github https://github.com/Zigistry/database/releases/download/executables/cron-github
22
23
+ - name: Make binary executable
24
+ run: chmod +x ./cron-github
25
26
+ - name: Run cron-github
27
+ run: ./cron-github
0 commit comments