diff --git a/.github/actions/build-and-push-branch/action.yml b/.github/actions/build-and-push-branch/action.yml index 80f2d4109854..6be0a94d2e99 100644 --- a/.github/actions/build-and-push-branch/action.yml +++ b/.github/actions/build-and-push-branch/action.yml @@ -10,44 +10,11 @@ inputs: runs: using: "composite" steps: - - name: "Parse Input" - id: parse-input - shell: bash - run: |- - # if the *branch_version_tag* input param is not specified, then generate it as 'dev-` - # - [[ "${{ inputs.branch_version_tag }}" != '' ]] && echo "::set-output name=branch_version_tag::${{ inputs.branch_version_tag }}" \ - || { short_hash=$(git rev-parse --short HEAD); echo "::set-output name=branch_version_tag::dev-$short_hash"; } - - - uses: actions/setup-java@v1 - with: - java-version: "17" - - - uses: actions/setup-node@v1 - with: - node-version: "16.13.0" - - - name: Set up CI Gradle Properties - run: | - mkdir -p ~/.gradle/ - cat > ~/.gradle/gradle.properties <" to pass AirbyteVersion validation)' + required: false +outputs: + branch_version_tag: + description: 'Tag used for jars and docker images. Either user specified or auto generated as `dev-`' + value: ${{ steps.parse-input.outputs.branch_version_tag }} +runs: + using: "composite" + steps: + - name: "Parse Input" + id: parse-input + shell: bash + run: |- + # if the *branch_version_tag* input param is not specified, then generate it as 'dev-` + # + [[ "${{ inputs.branch_version_tag }}" != '' ]] && echo "::set-output name=branch_version_tag::${{ inputs.branch_version_tag }}" \ + || { short_hash=$(git rev-parse --short HEAD); echo "::set-output name=branch_version_tag::dev-$short_hash"; } + + - uses: actions/setup-java@v1 + with: + java-version: "17" + + - uses: actions/setup-node@v1 + with: + node-version: "16.13.0" + + - name: Set up CI Gradle Properties + run: | + mkdir -p ~/.gradle/ + cat > ~/.gradle/gradle.properties <