-
Notifications
You must be signed in to change notification settings - Fork 18
41 lines (37 loc) · 1.61 KB
/
Copy pathdev_update_clash_gists.yml
File metadata and controls
41 lines (37 loc) · 1.61 KB
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
# This is a basic workflow to help you get started with Actions
name: Update Clash Gists - Dev Only
# Controls when the workflow will run
on:
push:
branches: [ "dler-dev" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Clone Personal Override
run: |
rm -rf proxies
[ -n "${{ secrets.REPO_ACCESS_TOKEN }}" ] && git clone https://x-access-token:${{ secrets.REPO_ACCESS_TOKEN }}@github.com/${{ secrets.PERSONAL_PROXIES_GIT_DEV }} overwrite || true
- name: Copy Personal Override To Working Directory
run: |
mkdir -p overwrite
cp -R ./overwrite/. ./
- name: Generate ClashXPro configuration
run: sh ./sh/gen_clash_config.sh ${{ secrets.DLER_SUBSCRIBE_TOKEN }} ${{ secrets.CF_WARP_PRIVATE_KEY }} ${{ secrets.CF_WARP_PUBLIC_KEY }}
# Update clash_config.yaml to gist
- name: Deploy
uses: exuanbo/actions-deploy-gist@v1
with:
token: ${{ secrets.GIST_TOKEN }}
gist_id: ${{ secrets.GIST_ID_DEV }}
gist_file_name: clash_config.yaml
file_path: ./gen/config/clash_config.yaml
file_type: text