xref: /web-php/.github/workflows/pr-closed.yml (revision 8a4cd71f)
1name: Remove preview PR
2on:
3  pull_request_target:
4    types: [ closed ]
5
6jobs:
7  build:
8    runs-on: "ubuntu-22.04"
9    if: github.repository_owner == 'php'
10    steps:
11      - uses: appleboy/ssh-action@v1.0.3
12        with:
13          host: ${{ secrets.PREVIEW_REMOTE_HOST }}
14          username: ${{ secrets.PREVIEW_REMOTE_USER }}
15          key: ${{ secrets.PREVIEW_SSH_KEY }}
16          script: bash /home/thephpfoundation/scripts/pr_closed.sh web-php ${{ github.event.number }}
17