Skip to content

Commit 0c18963

Browse files
authored
Merge pull request #8 from Daemon-Solutions/sd-4482
fix(sd-4482): install boto3 before running publish.py
2 parents 6bc3a41 + 8ff7423 commit 0c18963

File tree

6 files changed

+67
-3
lines changed

6 files changed

+67
-3
lines changed

.github/workflows/pr.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, edited]
6+
7+
8+
jobs:
9+
main:
10+
name: Validate PR title
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: read
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v5
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "24"
19+
- name: Install Semantic Dependencies
20+
run: |
21+
npm i --save-dev conventional-changelog-conventionalcommits@9
22+
- name: Semantic Release
23+
id: semantic
24+
uses: cycjimmy/semantic-release-action@v4
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
27+
with:
28+
extra_plugins: |
29+
@semantic-release/changelog
30+
@semantic-release/git
31+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.terraform*

.releaserc.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
branches:
2+
- name: master
3+
4+
plugins:
5+
- - "@semantic-release/commit-analyzer"
6+
- preset: conventionalcommits
7+
- - "@semantic-release/release-notes-generator"
8+
- preset: conventionalcommits
9+
- "@semantic-release/github"
10+
- - "@semantic-release/changelog"
11+
- assets:
12+
- CHANGELOG.md
13+
- - "@semantic-release/git"
14+
- assets:
15+
- CHANGELOG.md
16+
tagFormat: "v${version}"
17+

main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ resource "null_resource" "notify_sns_topic" {
5656
}
5757

5858
provisioner "local-exec" {
59-
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}"
59+
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}"
6060
}
6161
}
62-

terraform.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ terraform {
55
data "aws_region" "current" {
66
count = var.enabled ? 1 : 0
77
}
8-

0 commit comments

Comments
 (0)