Skip to content

Commit 4534f8c

Browse files
authored
Merge pull request #24 from DNXLabs/fix/warning
Fix/warning
2 parents 492c22d + 7abfa3c commit 4534f8c

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed

.github/release-drafter.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name-template: '$RESOLVED_VERSION'
2+
tag-template: '$RESOLVED_VERSION'
3+
version-template: '$MAJOR.$MINOR.$PATCH'
4+
version-resolver:
5+
major:
6+
labels:
7+
- 'major'
8+
minor:
9+
labels:
10+
- 'minor'
11+
- 'enhancement'
12+
patch:
13+
labels:
14+
- 'auto-update'
15+
- 'patch'
16+
- 'fix'
17+
- 'bugfix'
18+
- 'bug'
19+
- 'hotfix'
20+
default: 'minor'
21+
22+
categories:
23+
- title: '🚀 Enhancements'
24+
labels:
25+
- 'enhancement'
26+
- 'patch'
27+
- title: '🐛 Bug Fixes'
28+
labels:
29+
- 'fix'
30+
- 'bugfix'
31+
- 'bug'
32+
- 'hotfix'
33+
- title: '🤖 Automatic Updates'
34+
labels:
35+
- 'auto-update'
36+
37+
change-template: |
38+
<details>
39+
<summary>$TITLE @$AUTHOR (#$NUMBER)</summary>
40+
$BODY
41+
</details>
42+
template: |
43+
## What’s Changed
44+
$CHANGES

.github/workflows/auto-release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: auto-release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
# Get PR from merged commit to master
13+
- uses: actions-ecosystem/action-get-merged-pull-request@v1
14+
id: get-merged-pull-request
15+
with:
16+
github_token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
17+
# Drafts your next Release notes as Pull Requests are merged into "master"
18+
- uses: release-drafter/release-drafter@v5
19+
with:
20+
publish: ${{ !contains(steps.get-merged-pull-request.outputs.labels, 'no-release') }}
21+
prerelease: false
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}

vpn-endpoint.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resource "aws_ec2_client_vpn_endpoint" "default" {
55
split_tunnel = var.split_tunnel
66
dns_servers = var.dns_servers
77
self_service_portal = local.self_service_portal
8+
security_group_ids = [var.security_group_id == "" ? aws_security_group.default[0].id : var.security_group_id]
89

910
authentication_options {
1011
type = var.authentication_type
@@ -31,7 +32,6 @@ resource "aws_ec2_client_vpn_network_association" "default" {
3132
count = length(var.subnet_ids)
3233
client_vpn_endpoint_id = aws_ec2_client_vpn_endpoint.default.id
3334
subnet_id = element(var.subnet_ids, count.index)
34-
security_groups = [var.security_group_id == "" ? aws_security_group.default[0].id : var.security_group_id]
3535
}
3636

3737
resource "aws_ec2_client_vpn_authorization_rule" "all_groups" {

0 commit comments

Comments
 (0)