Skip to content

Commit f30f678

Browse files
fix publish-java-cdk workflow on push-to-master (#36975)
the publish-java-cdk on push-to-master wasn't working because the value of dry-run was set to true. I'm also adding some debugging info so we know what the values of DRY_RUN and FORCE are This was tested on my fork of the airbyte repo
1 parent 5a1edcc commit f30f678

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish-java-cdk-command.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ env:
4949
# Use the provided GITREF or default to the branch triggering the workflow.
5050
GITREF: ${{ github.event.inputs.gitref || github.ref }}
5151
FORCE: "${{ github.event_name == 'push' || github.event.inputs.force == null && 'false' || github.event.inputs.force }}"
52-
DRY_RUN: "${{ github.event.inputs.dry-run == null && 'true' || github.event.inputs.dry-run }}"
52+
DRY_RUN: "${{ github.event_name == 'push' && 'false' || github.event.inputs.dry-run == null && 'true' || github.event.inputs.dry-run }}"
5353
CDK_VERSION_FILE_PATH: "./airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties"
5454
S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
5555
S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
@@ -77,6 +77,9 @@ jobs:
7777
id: read-target-java-cdk-version
7878
run: |
7979
cdk_version=$(cat $CDK_VERSION_FILE_PATH | tr -d '\n')
80+
echo "CDK_VERSION=$CDK_VERSION"
81+
echo "FORCE=$FORCE"
82+
echo "DRY_RUN=$DRY_RUN"
8083
if [[ -z "$cdk_version" ]]; then
8184
echo "Failed to retrieve CDK version from $CDK_VERSION_FILE_PATH"
8285
exit 1

0 commit comments

Comments
 (0)