forked from portersupport/js-test-app
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8f3c2d
commit de12c8e
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
"on": | ||
workflow_dispatch: | ||
inputs: | ||
pr_branch_from: | ||
description: Pull request head branch | ||
required: true | ||
type: string | ||
pr_branch_into: | ||
description: Pull request base branch | ||
required: true | ||
type: string | ||
pr_number: | ||
description: Pull request number | ||
required: true | ||
type: string | ||
pr_title: | ||
description: Pull request title | ||
required: true | ||
type: string | ||
name: Porter Preview Environment | ||
jobs: | ||
porter-preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Create Porter preview env | ||
timeout-minutes: 30 | ||
uses: porter-dev/[email protected] | ||
with: | ||
action_id: ${{ github.run_id }} | ||
cluster: "1757" | ||
host: https://dashboard.porter.run | ||
installation_id: "18533943" | ||
namespace: pr-${{ github.event.inputs.pr_number }}-js-test-app | ||
pr_branch_from: ${{ github.event.inputs.pr_branch_from }} | ||
pr_branch_into: ${{ github.event.inputs.pr_branch_into }} | ||
pr_id: ${{ github.event.inputs.pr_number }} | ||
pr_name: ${{ github.event.inputs.pr_title }} | ||
project: "2611" | ||
repo_name: js-test-app | ||
repo_owner: porter-dev | ||
token: ${{ secrets.PORTER_PREVIEW_2611_1757 }} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.inputs.pr_number }} |