24 lines
710 B
YAML
24 lines
710 B
YAML
name: sync-ios-rule-subset
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 */12 * * *'
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone repository
|
|
run: |
|
|
git clone "https://yuanzhen869:${{ secrets.SYNC_TOKEN }}@git.halonice.com/yuanzhen869/ios-rule-script-subset.git" repo
|
|
cp -a repo/. .
|
|
rm -rf repo
|
|
- name: Sync subset from upstream
|
|
env:
|
|
GITEA_REPO_OWNER: yuanzhen869
|
|
GITEA_REPO_NAME: ios-rule-script-subset
|
|
GITEA_SYNC_USERNAME: yuanzhen869
|
|
GITEA_SYNC_EMAIL: yuanzhen869@gmail.com
|
|
GITEA_SYNC_TOKEN: ${{ secrets.SYNC_TOKEN }}
|
|
run: |
|
|
bash ./scripts/sync_subset.sh
|