forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (90 loc) · 3.27 KB
/
update-lockfiles.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: update-lockfiles
on:
pull_request_target:
branches:
- "release-**"
types:
- closed
permissions:
contents: read
env:
GH_TOKEN: ${{ secrets.BAZEL_IO_TOKEN }}
jobs:
update-lockfiles:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
with:
egress-policy: audit
- name: Update lockfile(s) on closed PR
uses: iancha1992/continuous-integration/actions/update-lockfile@updatelockfile_PRs
with:
release-branch: ${{ github.base_ref }}
is-prod: False
pr_number: ${{ github.event.number }}
print-job:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
# update-lockfile-on-closed-PR:
# runs-on: ubuntu-latest
# steps:
# - name: Update lockfile(s) on closed PR
# uses: iancha1992/continuous-integration/actions/update-lockfile@updatelockfile_PRs
# with:
# release-branch: ${{ github.event.base_ref }}
# jobs:
# cherry-picker-on-closed:
# if: github.event.action == 'closed'
# runs-on: ubuntu-latest
# steps:
# - name: Harden Runner
# uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
# with:
# egress-policy: audit
# - if: github.event.pull_request
# name: Run cherrypicker on closed PR
# uses: iancha1992/continuous-integration/actions/cherry_picker@updatelockfile_PRs
# with:
# triggered-on: closed
# pr-number: ${{ github.event.number }}
# is-prod: False
# - if: github.event.issue
# name: Run cherrypicker on closed issue
# uses: iancha1992/continuous-integration/actions/cherry_picker@updatelockfile_PRs
# with:
# triggered-on: closed
# pr-number: ${{ github.event.issue.number }}
# is-prod: False
# cherry-picker-on-milestoned:
# if: github.event.action == 'milestoned'
# runs-on: ubuntu-latest
# steps:
# - name: Harden Runner
# uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
# with:
# egress-policy: audit
# - if: startsWith(github.event.issue.body, 'Forked from')
# name: Run cherrypicker on comment
# uses: iancha1992/continuous-integration/actions/cherry_picker@updatelockfile_PRs
# with:
# triggered-on: commented
# pr-number: ${{ github.event.issue.body }}
# milestone-title: ${{ github.event.milestone.title }}
# milestoned-issue-number: ${{ github.event.issue.number }}
# is-prod: False
# - if: startsWith(github.event.issue.body, '### Commit IDs')
# name: Run cherrypicker on demand
# uses: iancha1992/continuous-integration/actions/cherry_picker@updatelockfile_PRs
# with:
# triggered-on: ondemand
# milestone-title: ${{ github.event.milestone.title }}
# milestoned-issue-number: ${{ github.event.issue.number }}
# issue-title: ${{ github.event.issue.title }}
# issue-body: ${{ github.event.issue.body }}
# is-prod: False