forked from spinnaker/deck
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.42 KB
/
approve_package_bumps.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
44
45
46
name: Deck CI
on:
pull_request:
paths:
- 'app/scripts/modules/amazon/package.json'
- 'app/scripts/modules/appengine/package.json'
- 'app/scripts/modules/azure/package.json'
- 'app/scripts/modules/cloudfoundry/package.json'
- 'app/scripts/modules/core/package.json'
- 'app/scripts/modules/docker/package.json'
- 'app/scripts/modules/ecs/package.json'
- 'app/scripts/modules/google/package.json'
- 'app/scripts/modules/huaweicloud/package.json'
- 'app/scripts/modules/kubernetes/package.json'
- 'app/scripts/modules/oracle/package.json'
- 'app/scripts/modules/titus/package.json'
env:
NODE_VERSION: 10.15.1
jobs:
test:
name: Approve package bumps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Ensure package bumps are pure
id: purebump
run: app/scripts/modules/assert_package_bumps_standalone.sh
- name: Approve package bump
if: steps.purebump.outputs.ispurebump == 'true'
# pin to v2.0.0 tag by commit hash
uses: hmarr/auto-approve-action@7782c7e
with:
github-token: '${{ secrets.SPINNAKERBOT_TOKEN }}'
- name: Add ready to merge label
if: steps.purebump.outputs.ispurebump == 'true'
uses: actions/github@v1.0.0
with:
args: label "ready to merge"
env:
GITHUB_TOKEN: ${{ secrets.SPINNAKERBOT_TOKEN }}