-
Notifications
You must be signed in to change notification settings - Fork 97
31 lines (27 loc) · 1.05 KB
/
auto_push.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
name: "自动push防止Actions自动停止"
on:
workflow_dispatch:
schedule:
- cron: '0 0 1,15 * *'
repository_dispatch:
types: start_action
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id || github.actor == 'HailongJson'
steps:
- name: Getting the repo
uses: actions/checkout@v2
- name: Re setting the url for `origin`
run: |
git remote set-url origin https://${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
- name: Adding git info
run: |
git config --global user.name "HailongJson"
git config --global user.email "1105744725@qq.com"
- name: Creating an empty commit
run: |
git commit --allow-empty -m "Auto amazing commit"
- name: Finilly pushing the repo
run: |
git push origin master