Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
fix: create regular team app
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbanugo committed May 9, 2022
1 parent 42535b3 commit 4393b3e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@ runs:
-H "Content-Type: application/json" \
-H "Accept: application/vnd.heroku+json; version=3" \
-H "Authorization: Bearer ${{ inputs.api-key }}"
- name: Create Team App
if: ${{ github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened') && inputs.use-app-json == 'false' && inputs.team != '' }}
shell: bash
run: |
curl -X POST https://api.heroku.com/apps \
-d '{
"name": "'"$APP_NAME"'",
"region": "${{ inputs.region }}",
"stack": "${{ inputs.stack }}",
"organization": "${{ inputs.team }}"
}' \
-H "Content-Type: application/json" \
-H "Accept: application/vnd.heroku+json; version=3" \
-H "Authorization: Bearer ${{ inputs.api-key }}"
- name: "Create App (Setup with app.json)"
if: ${{ github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened') && inputs.use-app-json == 'true' && inputs.team == '' }}
shell: bash
Expand Down

0 comments on commit 4393b3e

Please sign in to comment.