forked from demarcush/breakfree
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 955 Bytes
/
main.yaml
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
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
main:
name: "Running main.sh"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Cache
uses: actions/cache@v3
- name: Collect and reformat
run: bash main.sh
- name: Commit
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add release/* serenity.db *.json
git commit -m "`date '+Collected on %Y: day %j, %T'`"
- name: Push
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}