Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Pull Request

on:
pull_request:
types: [opened, synchronize, reopened, edited]


jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "24"
- name: Install Semantic Dependencies
run: |
npm i --save-dev conventional-changelog-conventionalcommits@9
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.terraform*
17 changes: 17 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
branches:
- name: master

plugins:
- - "@semantic-release/commit-analyzer"
- preset: conventionalcommits
- - "@semantic-release/release-notes-generator"
- preset: conventionalcommits
- "@semantic-release/github"
- - "@semantic-release/changelog"
- assets:
- CHANGELOG.md
- - "@semantic-release/git"
- assets:
- CHANGELOG.md
tagFormat: "v${version}"

3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ resource "null_resource" "notify_sns_topic" {
}

provisioner "local-exec" {
command = "python ${path.module}/include/publish.py ${data.aws_region.current[0].name} ${element(var.asg_names, count.index)} ${aws_sns_topic.manage_dns_asg_sns[0].arn}"
command = "pip install boto3 && python ${path.module}/include/publish.py ${data.aws_region.current[0].name} ${element(var.asg_names, count.index)} ${aws_sns_topic.manage_dns_asg_sns[0].arn}"
}
}

1 change: 0 additions & 1 deletion terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ terraform {
data "aws_region" "current" {
count = var.enabled ? 1 : 0
}