Skip to content

Commit f8cafad

Browse files
added github automatic updates
1 parent 7a2c064 commit f8cafad

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
1+
name: GitHub Automatic Update
12

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

Comments
 (0)