-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 970 Bytes
/
build.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
31
32
33
34
35
36
37
38
39
40
41
42
name: Build
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
branches:
- '**'
permissions: write-all
jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@main
with:
python-version: '3.12'
- run: python -m pip install 'httpx[http2]' 'aiofiles'
- name: Run
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GL_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
python -B -u main.py
- name: Run
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git branch timestamp
git checkout timestamp
date > timestamp
git add timestamp
git commit -m "Initial commit"
git push -f origin timestamp