Skip to content

Commit b1ce5e9

Browse files
committed
Enable plan-preview action
1 parent be15343 commit b1ce5e9

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/plan-preview.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PipeCD
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types: [opened, synchronize, reopened]
8+
issue_comment:
9+
types: [created]
10+
11+
jobs:
12+
plan-preview:
13+
name: Plan Preview
14+
runs-on: ubuntu-latest
15+
if: "github.event_name == 'pull_request'"
16+
steps:
17+
- uses: pipe-cd/[email protected]
18+
with:
19+
address: ${{ secrets.PIPECD_API_ADDRESS }}
20+
api-key: ${{ secrets.PIPECD_PLAN_PREVIEW_API_KEY }}
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
23+
plan-preview-on-comment:
24+
name: Plan Preview
25+
runs-on: ubuntu-latest
26+
if: "github.event_name == 'issue_comment' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/pipecd plan-preview')"
27+
steps:
28+
- uses: pipe-cd/[email protected]
29+
with:
30+
address: ${{ secrets.PIPECD_API_ADDRESS }}
31+
api-key: ${{ secrets.PIPECD_PLAN_PREVIEW_API_KEY }}
32+
token: ${{ secrets.GITHUB_TOKEN }}

CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.github @pipe-cd/admin
2+
.kapetanios @pipe-cd/admin

0 commit comments

Comments
 (0)