File tree 4 files changed +52
-3
lines changed
4 files changed +52
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Copyright 2020 Google Inc.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
3
17
set -e
4
18
set -u
5
19
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Copyright 2020 Google Inc.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+
3
18
# ##################################### Outputs #####################################
4
19
5
20
# 1. version: The version of this release including the 'v' prefix (e.g. v1.2.3).
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Copyright 2020 Google Inc.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
3
17
set -e
4
18
set -u
5
19
Original file line number Diff line number Diff line change 26
26
27
27
jobs :
28
28
stage_release :
29
- # If triggered by a PR it must contain the label 'release:build'.
29
+ # To publish a release, merge the release PR with the label 'release:publish'.
30
+ # To stage a release without publishing it, send a 'firebase_build' event or apply
31
+ # the 'release:stage' label to a PR.
30
32
if : github.event.action == 'firebase_build' ||
31
- contains(github.event.pull_request.labels.*.name, 'release:build')
33
+ contains(github.event.pull_request.labels.*.name, 'release:stage') ||
34
+ (github.event.pull_request.merged &&
35
+ contains(github.event.pull_request.labels.*.name, 'release:publish'))
32
36
33
37
runs-on : ubuntu-latest
34
38
78
82
# Check whether the release should be published. We publish only when the trigger PR is
79
83
# 1. merged
80
84
# 2. to the master branch
81
- # 3. with the title prefix '[chore] Release '.
85
+ # 3. with the label 'release:publish', and
86
+ # 4. the title prefix '[chore] Release '.
82
87
if : github.event.pull_request.merged &&
83
88
github.ref == 'master' &&
89
+ contains(github.event.pull_request.labels.*.name, 'release:publish') &&
84
90
startsWith(github.event.pull_request.title, '[chore] Release ')
85
91
86
92
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments