Skip to content

Workflow file for this run

name: Trigger Buildkite on PR close to destroy staging environment
on:
push:
branches:
- destroy-staging-ga-action
# on:
# pull_request:
# types:
# - closed
jobs:
destroy_staging:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install requests
- name: Run script
env:
BUILDKITE_API_ACCESS_TOKEN: ${{ secrets.BUILDKITE_API_ACCESS_TOKEN }}
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
run: |
python .github/destroy_staging.py