Skip to content

Commit 28b9d17

Browse files
committed
CCM-11751: Fixing eventpub path
1 parent fa65d77 commit 28b9d17

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/release_created.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Github Release Created
22

33
on:
4-
release:
5-
types: ["published"] # Inherits all input defaults
4+
# release:
5+
# types: ["published"] # Inherits all input defaults
6+
push:
7+
branches:
8+
- feature/CCM-11751_eventpub_fix
69

710
concurrency:
811
group: ${{ github.workflow }}-${{ github.ref }}
@@ -31,7 +34,7 @@ jobs:
3134
echo "Zipping contents of $module_name..."
3235
(cd "$module_name" && zip -r "$ARTIFACTS_DIR/terraform-${module_name}.zip" .)
3336
echo "Publishing $module_name module..."
34-
gh release upload ${{ github.event.release.tag_name }} "$ARTIFACTS_DIR/terraform-${module_name}.zip" --clobber
37+
gh release upload v2.0.21 "$ARTIFACTS_DIR/terraform-${module_name}.zip" --clobber
3538
done
3639
env:
3740
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

infrastructure/modules/eventpub/archive_file_lambda.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
resource "archive_file" "lambda" {
22
type = "zip"
3-
source_dir = "${path.module}/../../../lambda/eventpub/src"
3+
source_dir = "${abspath("${path.module}/../../../lambda/eventpub/src")}"
44

55
# Timestamp in path to resolve https://github.com/hashicorp/terraform-provider-archive/issues/39
6-
output_path = "${path.module}/../../../lambda/eventpub_${timestamp()}.zip"
6+
output_path = "${abspath("${path.module}/../../../lambda/eventpub_${timestamp()}.zip")}"
77
excludes = [
88
# NodeJS Exclusions
99
"**/__tests__",

0 commit comments

Comments
 (0)