File tree 2 files changed +0
-43
lines changed 2 files changed +0
-43
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
types : [closed]
6
6
7
- env :
8
- REGION : cn-n1 # set this to your LeanCloud region, e.g. cn-n1
9
- APP_ID : j1sU6A4GIEiCzwDu5l9Klk03-9Nh9j0Va # set this to your App ID on LeanCloud
10
- GROUP : web # set this to your group, e.g. web
11
-
12
7
jobs :
13
8
delete-preview-environment :
14
9
runs-on : ubuntu-latest
15
10
permissions :
16
11
deployments : write
17
12
steps :
18
- - name : Install lean-cli
19
- run : |
20
- sudo curl -L -o /bin/lean https://github.com/leancloud/lean-cli/releases/download/v1.2.3/lean-linux-x64
21
- sudo chmod +x /bin/lean
22
- - name : Delete Preview Environment
23
- run : |
24
- lean login --region ${{ env.REGION }} --token ${{ secrets.LC_ACCESS_TOKEN }}
25
- lean switch --region ${{ env.REGION }} --group ${{ env.GROUP }} ${{ env.APP_ID }}
26
- lean preview delete
27
13
- uses : strumwolf/delete-deployment-environment@v2
28
14
with :
29
15
token : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments