Sylius/.github/workflows/bunnyshell_delete-preview-env.yaml
Aris Buzachis 1a5b08e8c8
[Bunnyshell] Adjust the workflows for Fork PRs
Signed-off-by: Aris Buzachis <aris.buzachis@bunnyshell.com>
2023-07-06 09:19:45 +02:00

22 lines
781 B
YAML

name: Bunnyshell - Delete Preview Environment
concurrency: bns-delete-${{ github.event.number || github.event.issue.number }}
on:
pull_request_target:
types: [closed]
branches:
- '*'
issue_comment:
types: [ created, edited ]
permissions:
pull-requests: write
jobs:
start:
name: Delete Environment
uses: bunnyshell/workflows/.github/workflows/delete-env.yaml@v1
with:
project-id: ${{ vars.BUNNYSHELL_PROJECT_ID }}
env-name: 'Sylius PR #${{ github.event.number || github.event.issue.number }}'
allowed-users: ${{ vars.BUNNYSHELL_ALLOWED_USERS }}
comment-on-pr: true
secrets:
bunnyshell-access-token: ${{ secrets.BUNNYSHELL_ACCESS_TOKEN }}