Skip to content

Commit

Permalink
fix: 修复 pr 关闭时环境变量
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexb committed Sep 3, 2023
1 parent 2f7c11a commit 8237d99
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ on:
pull_request_target:
types: [closed]

env:
DOMAIN: echo-pr-${{ github.event.pull_request.number }}.dev.xuexb.com

jobs:
clean-dev:
clean-test:
runs-on: ubuntu-latest
environment: dev
environment: test
steps:
- name: clean
uses: xuexb/dyups-actions/deploy@master
Expand All @@ -18,4 +21,4 @@ jobs:
ssh-port: ${{ secrets.SSH_PORT }}
dyups-server: ${{ secrets.DYUPS_SERVER }}
dyups-token: ${{ secrets.DYUPS_TOKEN }}
domain: echo.xuexb.com
domain: ${{ env.DOMAIN }}

0 comments on commit 8237d99

Please sign in to comment.