File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 19
19
#
20
20
[[ "${{ inputs.branch_version_tag }}" != '' ]] && echo "branch_version_tag=${{ inputs.branch_version_tag }}" >> $GITHUB_OUTPUT \
21
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"; }
22
28
23
29
- uses : actions/setup-java@v1
24
30
with :
Original file line number Diff line number Diff line change 72
72
if $(git merge-base --is-ancestor "${commit_sha}" master); then
73
73
echo "master_tag=${commit_sha}" >> $GITHUB_OUTPUT
74
74
fi
75
+ cat $GITHUB_OUTPUT || true # for the sake of investigation
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
75
84
76
85
oss-branch-build :
77
86
name : " Gradle Build and Publish"
You can’t perform that action at this time.
0 commit comments