-
Notifications
You must be signed in to change notification settings - Fork 27
40 lines (38 loc) · 1.01 KB
/
blank.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
name: CI
on:
push:
branches: [ master ]
watch:
types: [started]
schedule:
- cron: 0 * * * *
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Create local changes
run: |
sudo rm -rf /etc/localtime
sudo ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
sudo apt-get install -y dos2unix jq fish sed
fish action_fish.sh
- name: Commit files
run: |
git config --local user.email ${{ secrets.MAIL }}
git config --local user.name ${{ secrets.NAME }}
git commit -m "Add changes" -a
git checkout --orphan new_branch
git add -A
git commit -am 'Add changes'
git branch -D master
git branch -m master
git branch -M master
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
force : true