Skip to content

Commit 013ecf7

Browse files
authored
use longer short shas (#19190)
it seems github APIs want us to use longer shas in some cases where a 7 character short sha is still entirely valid So just set the minimum short sha length to 10
1 parent 17e869f commit 013ecf7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/actions/build-branch/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runs:
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=7 HEAD); echo "branch_version_tag=dev-$short_hash" >> $GITHUB_OUTPUT ; }
21+
|| { short_hash=$(git rev-parse --short=10 HEAD); echo "branch_version_tag=dev-$short_hash" >> $GITHUB_OUTPUT ; }
2222
2323
- uses: actions/setup-java@v1
2424
with:

.github/workflows/publish-oss-for-cloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
run: |-
6363
set -x
6464
65-
commit_sha=$(git rev-parse --short=7 HEAD)
65+
commit_sha=$(git rev-parse --short=10 HEAD)
6666
6767
# set dev_tag
6868
# AirbyteVersion.java allows versions that have a prefix of 'dev'

0 commit comments

Comments
 (0)