File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change 1818 # if the *branch_version_tag* input param is not specified, then generate it as 'dev-<commit_hash>`
1919 #
2020 [[ "${{ inputs.branch_version_tag }}" != '' ]] && echo "branch_version_tag=${{ inputs.branch_version_tag }}" >> $GITHUB_OUTPUT \
21- || { short_hash=$(git rev-parse --short HEAD); echo "branch_version_tag=dev-$short_hash" >> $GITHUB_OUTPUT ; }
22- cat $GITHUB_OUTPUT || true # for the sake of investigation
23-
24- # if the *branch_version_tag* input param is not specified, then generate it as 'dev-<commit_hash>`
25- #
26- [[ "${{ inputs.branch_version_tag }}" != '' ]] && echo "::set-output name=branch_version_tag::${{ inputs.branch_version_tag }}" \
27- || { short_hash=$(git rev-parse --short HEAD); echo "::set-output name=branch_version_tag::dev-$short_hash"; }
21+ || { short_hash=$(git rev-parse --short=7 HEAD); echo "branch_version_tag=dev-$short_hash" >> $GITHUB_OUTPUT ; }
2822
2923 - uses : actions/setup-java@v1
3024 with :
Original file line number Diff line number Diff line change 6262 run : |-
6363 set -x
6464
65- commit_sha=$(git rev-parse --short HEAD)
65+ commit_sha=$(git rev-parse --short=7 HEAD)
6666
6767 # set dev_tag
6868 # AirbyteVersion.java allows versions that have a prefix of 'dev'
7474 fi
7575 cat $GITHUB_OUTPUT || true # for the sake of investigation
7676
77- # set dev_tag
78- # AirbyteVersion.java allows versions that have a prefix of 'dev'
79- echo "::set-output name=dev_tag::dev-${commit_sha}"
80-
81- if $(git merge-base --is-ancestor "${commit_sha}" master); then
82- echo "::set-output name=master_tag::${commit_sha}"
83- fi
84-
8577 oss-branch-build :
8678 name : " Gradle Build and Publish"
8779 needs :
You can’t perform that action at this time.
0 commit comments