Skip to content

[#1398] Renamed .env.local.default to .env.local.example. #110

[#1398] Renamed .env.local.default to .env.local.example.

[#1398] Renamed .env.local.default to .env.local.example. #110

##
# GitHub Actions workflow to action on Pull Request closure.
#
name: Close Pull Request
on:
pull_request:
types:
- closed
jobs:
remove_lagoon_environment:
runs-on: ubuntu-latest
steps:
- name: Remove environment after a PR is closed
run: |
cat "$GITHUB_EVENT_PATH" | curl \
-X POST \
--header "Content-Type: application/json" \
--header "X-GitHub-Delivery: ${RUNNER_TRACKING_ID:7}" \
--header "X-GitHub-Event: pull_request" \
--data-binary @- \
"${LAGOON_WEBHOOK_ENDPOINT:-https://hooks.lagoon.amazeeio.cloud/}"
env:
LAGOON_WEBHOOK_ENDPOINT: ${{ env.LAGOON_WEBHOOK_ENDPOINT }}