-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (39 loc) · 1.12 KB
/
pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Pull Request
on:
merge_group:
pull_request:
paths-ignore:
- '01-teams/**'
- '02-repositories/**'
- '03-members/**'
- '.github/workflows/provider-*.yaml'
pull_request_target:
paths:
- '01-teams/**'
- '02-repositories/**'
- '03-members/**'
jobs:
preview-changes:
name: Preview changes
runs-on: ubuntu-latest
steps:
# Checkout code when the event is `pull_request`
- name: Checkout code
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
# Checkout code when the event is `pull_request_target`
- name: Checkout code
if: github.event_name == 'pull_request_target'
uses: actions/checkout@v4
with:
ref: '${{ github.event.pull_request.merge_commit_sha }}'
- uses: volta-cli/action@v4
- run: npm ci
- uses: pulumi/actions@v5.2.4
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
with:
command: preview
refresh: true
stack-name: pulumiverse/prod