Skip to content

Commit 84b045b

Browse files
committed
upgrade to v5
1 parent 5cfbc52 commit 84b045b

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

.github/workflows/pullpreview.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
name: PullPreview
22
on:
3+
schedule:
4+
- cron: "30 0 * * *"
35
push:
46
branches:
57
- master
6-
pull_request_target:
7-
types: [labeled, unlabeled, closed, synchronize, reopened]
8+
pull_request:
9+
types: [labeled, unlabeled, synchronize, closed, reopened]
810

911
jobs:
1012
deploy:
1113
name: Deploy
1214
runs-on: ubuntu-latest
15+
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.label.name == 'pullpreview' || contains(github.event.pull_request.labels.*.name, 'pullpreview')
16+
timeout-minutes: 30
1317
steps:
14-
- uses: actions/checkout@v2
15-
with:
16-
ref: ${{ github.event.pull_request.head.sha }}
17-
- uses: pullpreview/action@v3
18-
with:
19-
admins: crohr
20-
always_on: master
21-
compose_files: "docker-compose.yml,docker-compose.staging.yml"
22-
default_port: 443
23-
instance_type: "micro_2_0"
24-
env:
25-
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
26-
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
18+
- uses: actions/checkout@v2
19+
with:
20+
ref: ${{ github.event.pull_request.head.sha }}
21+
- uses: pullpreview/action@v5
22+
with:
23+
admins: crohr
24+
always_on: master
25+
compose_files: "docker-compose.yml,docker-compose.staging.yml"
26+
default_port: 443
27+
instance_type: "micro_2_0"
28+
env:
29+
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
30+
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"

0 commit comments

Comments
 (0)