File tree Expand file tree Collapse file tree 7 files changed +36
-17
lines changed Expand file tree Collapse file tree 7 files changed +36
-17
lines changed Original file line number Diff line number Diff line change 15
15
16
16
# Cloud Posse must review any changes to standard context definition,
17
17
# but some changes can be rubber-stamped.
18
- ** /* .tf @ cloudposse/engineering @ cloudposse/approvers
19
- README.yaml @ cloudposse/engineering @ cloudposse/approvers
18
+ ** /* .tf @ cloudposse/engineering @ cloudposse/contributors @ cloudposse/ approvers
19
+ README.yaml @ cloudposse/engineering @ cloudposse/contributors @ cloudposse/ approvers
20
20
README.md @ cloudposse/engineering @ cloudposse/contributors @ cloudposse/approvers
21
21
docs /* .md @ cloudposse/engineering @ cloudposse/contributors @ cloudposse/approvers
22
22
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ template: |
46
46
47
47
replacers :
48
48
# Remove irrelevant information from Renovate bot
49
- - search : ' /---\s+^#.*Renovate configuration(?:.|\n)*?This PR has been generated .*/gm'
49
+ - search : ' /(?<= ---\s+)+ ^#.*( Renovate configuration|Configuration) (?:.|\n)*?This PR has been generated .*/gm'
50
50
replace : ' '
51
51
# Remove Renovate bot banner image
52
52
- search : ' /\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm'
Original file line number Diff line number Diff line change @@ -56,3 +56,10 @@ pull_request_rules:
56
56
changes_requested : true
57
57
approved : true
58
58
message : " This Pull Request has been updated, so we're dismissing all reviews."
59
+
60
+ - name : " close Pull Requests without files changed"
61
+ conditions :
62
+ - " #files=0"
63
+ actions :
64
+ close :
65
+ message : " This pull request has been automatically closed by Mergify because there are no longer any changes."
Original file line number Diff line number Diff line change 6
6
jobs :
7
7
auto-format :
8
8
runs-on : ubuntu-latest
9
- container : cloudposse/build-harness:slim- latest
9
+ container : cloudposse/build-harness:latest
10
10
steps :
11
11
# Checkout the pull request branch
12
12
# "An action in a workflow run can’t trigger a new workflow run. For example, if an action pushes code using
29
29
- name : Auto Format
30
30
if : github.event.pull_request.state == 'open'
31
31
shell : bash
32
+ env :
33
+ GITHUB_TOKEN : " ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}"
32
34
run : make BUILD_HARNESS_PATH=/build-harness PACKAGES_PREFER_HOST=true -f /build-harness/templates/Makefile.build-harness pr/auto-format/host
33
35
34
36
# Commit changes (if any) to the PR branch
Original file line number Diff line number Diff line change @@ -3,17 +3,25 @@ name: auto-release
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - main
7
+ - master
8
+ - production
7
9
8
10
jobs :
9
11
publish :
10
12
runs-on : ubuntu-latest
11
13
steps :
12
- # Drafts your next Release notes as Pull Requests are merged into "master"
13
- - uses : release-drafter/release-drafter@v5
14
- with :
15
- publish : true
16
- prerelease : false
17
- config-name : auto-release.yml
18
- env :
19
- GITHUB_TOKEN : ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
14
+ # Get PR from merged commit to master
15
+ - uses : actions-ecosystem/action-get-merged-pull-request@v1
16
+ id : get-merged-pull-request
17
+ with :
18
+ github_token : ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
19
+ # Drafts your next Release notes as Pull Requests are merged into "main"
20
+ - uses : release-drafter/release-drafter@v5
21
+ if : " !contains(steps.get-merged-pull-request.outputs.labels, 'no-release')"
22
+ with :
23
+ publish : true
24
+ prerelease : false
25
+ config-name : auto-release.yml
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change 1
1
name : Validate Codeowners
2
2
on :
3
+ workflow_dispatch :
4
+
3
5
pull_request :
4
6
5
7
jobs :
Original file line number Diff line number Diff line change @@ -154,10 +154,10 @@ resource "aws_instance" "default" {
154
154
}
155
155
156
156
resource "aws_eip" "default" {
157
- count = var. associate_public_ip_address && var. assign_eip_address && module. this . enabled ? 1 : 0
158
- network_interface = join (" " , aws_instance. default . * . primary_network_interface_id )
159
- vpc = true
160
- tags = module. this . tags
157
+ count = var. associate_public_ip_address && var. assign_eip_address && module. this . enabled ? 1 : 0
158
+ instance = join (" " , aws_instance. default . * . id )
159
+ vpc = true
160
+ tags = module. this . tags
161
161
}
162
162
163
163
resource "aws_ebs_volume" "default" {
You can’t perform that action at this time.
0 commit comments