ROAD-536 Add VersionJump model and admin integration #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- uses: fastruby/create-heroku-review-app@main | |
with: | |
action: create | |
env: | |
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }} | |
HEROKU_PIPELINE_ID: ${{ secrets.HEROKU_PIPELINE_ID }} | |
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: | |
- uses: fastruby/create-heroku-review-app@main | |
with: | |
action: destroy | |
env: | |
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }} | |
HEROKU_PIPELINE_ID: ${{ secrets.HEROKU_PIPELINE_ID }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: fastruby/pr-unlabeler@v1 | |
with: | |
label-to-remove: "destroy-review-app" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |