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 18
18
# if the *branch_version_tag* input param is not specified, then generate it as 'dev-<commit_hash>`
19
19
#
20
20
[[ "${{ 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 ; }
28
22
29
23
- uses : actions/setup-java@v1
30
24
with :
Original file line number Diff line number Diff line change 62
62
run : |-
63
63
set -x
64
64
65
- commit_sha=$(git rev-parse --short HEAD)
65
+ commit_sha=$(git rev-parse --short=7 HEAD)
66
66
67
67
# set dev_tag
68
68
# AirbyteVersion.java allows versions that have a prefix of 'dev'
74
74
fi
75
75
cat $GITHUB_OUTPUT || true # for the sake of investigation
76
76
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
-
85
77
oss-branch-build :
86
78
name : " Gradle Build and Publish"
87
79
needs :
You can’t perform that action at this time.
0 commit comments