You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.4 KiB
YAML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# name属性用来指定这个工作流的名字
name: Download The SUBSCRIBE
on:
push:
branches:
- main
schedule:
- cron: '0 * */30 * *' #国际标准时间,北京时间+8即下午1点钟
jobs:
run-csjs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main #采用main分支下的
- name: Download the subscribe
run: |
sh ./run.sh
- name: Commit Changes
run: |
git config --global user.email flik@92coco.cn
git config --global user.name Flik
git add .
git commit -m"由github actions推送,日期:`date`"
git pull --rebase
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: GitHub Push
# You may pin to the exact commit or the version.
# uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6
uses: ad-m/github-push-action@v0.6.0
with:
# Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}
github_token: $\{{ secrets.GITHUB_TOKEN }}
# Repository name to push. Default or empty value represents current github repository (${GITHUB_REPOSITORY})
repository: ${GITHUB_REPOSITORY}
branch: master
force: true
tags: true
directory: .