Skip to content

chore(deps): bump @types/node from 18.11.18 to 20.6.1 #328

chore(deps): bump @types/node from 18.11.18 to 20.6.1

chore(deps): bump @types/node from 18.11.18 to 20.6.1 #328

name: Heroku Review App on label
on:
pull_request:
types: [labeled]
jobs:
create-review-app:
if: ${{ github.event.label.name == 'create-review-app' }}
runs-on: ubuntu-latest
steps:
- name: create review app for space
uses: fastruby/[email protected]
with:
action: create
env:
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
HEROKU_PIPELINE_ID: ${{ secrets.HEROKU_PIPELINE_ID_SPACE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: create review app for api
uses: fastruby/[email protected]
with:
action: create
env:
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
HEROKU_PIPELINE_ID: ${{ secrets.HEROKU_PIPELINE_ID_API }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: fastruby/pr-unlabeler@v1
with:
label-to-remove: "create-review-app"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
destroy-review-app:
if: ${{ github.event.label.name == 'destroy-review-app' }}
runs-on: ubuntu-latest
steps:
- name: destroy review app for space
uses: fastruby/[email protected]
with:
action: destroy
env:
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
HEROKU_PIPELINE_ID: ${{ secrets.HEROKU_PIPELINE_ID_SPACE }}
- name: destroy review app for api
uses: fastruby/[email protected]
with:
action: destroy
env:
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
HEROKU_PIPELINE_ID: ${{ secrets.HEROKU_PIPELINE_ID_API }}
- uses: fastruby/pr-unlabeler@v1
with:
label-to-remove: "destroy-review-app"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}