Skip to content

Commit 92f29d0

Browse files
authored
chore: fix release-ci (#1883)
1 parent 43e078a commit 92f29d0

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ jobs:
7676
buildspec-override: codebuild/ci/release-ci.yml
7777
compute-type-override: BUILD_GENERAL1_LARGE
7878
image-override: aws/codebuild/standard:3.0
79+
env-vars-for-codebuild: GITHUB_EVENT_NAME
80+
env:
81+
GITHUB_EVENT_NAME: $GITHUB_EVENT_NAME
7982
validateCI:
8083
name: Validate CI
8184
runs-on: ubuntu-latest
@@ -106,7 +109,9 @@ jobs:
106109
image-override: ${{ matrix.platform.image }}
107110
env-vars-for-codebuild: |
108111
JAVA_ENV_VERSION,
109-
JAVA_NUMERIC_VERSION
112+
JAVA_NUMERIC_VERSION,
113+
GITHUB_EVENT_NAME
110114
env:
111115
JAVA_ENV_VERSION: ${{ matrix.platform.distribution }}${{ matrix.version }}
112116
JAVA_NUMERIC_VERSION: ${{ matrix.version }}
117+
GITHUB_EVENT_NAME: $GITHUB_EVENT_NAME

codebuild/ci/release-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ phases:
2626
- tar -xvf ~/mvn_gpg.tgz -C ~
2727
build:
2828
commands:
29-
- VERSION_HASH="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$CODEBUILD_RESOLVED_SOURCE_VERSION"
29+
- VERSION_HASH="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$CODEBUILD_RESOLVED_SOURCE_VERSION-$GITHUB_EVENT_NAME"
3030

3131
# Remove any old artifacts with the same commit ID. This allows CI to run more than once for the same commit
3232
- |

codebuild/ci/validate-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ phases:
1616
java: $JAVA_ENV_VERSION
1717
pre_build:
1818
commands:
19-
- VERSION_HASH="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$CODEBUILD_RESOLVED_SOURCE_VERSION"
19+
- VERSION_HASH="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$CODEBUILD_RESOLVED_SOURCE_VERSION-$GITHUB_EVENT_NAME"
2020
- export SETTINGS_FILE=$(pwd)/codebuild/ci/settings.xml
2121
- git clone https://github.com/aws-samples/busy-engineers-document-bucket.git
2222
- cd busy-engineers-document-bucket/exercises/java/encryption-context-complete

0 commit comments

Comments
 (0)