File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,23 @@ check_for_updates() {
17
17
exit_no_commits
18
18
fi
19
19
20
- UPSTREAM_TARGET=" "
21
-
20
+ # UPSTREAM_TARGET=""
21
+
22
+ # if [ -n ${INPUT_UPSTREAM_SYNC_TAG} ]; then
23
+ # # Pull tags
24
+ # write_out -1 'Fetching latest tags from upstream.\n'
25
+ # git fetch --quiet --shallow-since="${INPUT_SHALLOW_SINCE}" upstream --tags
26
+ # git tag
27
+ # UPSTREAM_TARGET="${INPUT_UPSTREAM_SYNC_TAG}"
28
+ # else
29
+ #
30
+ # fi
22
31
if [ -n ${INPUT_UPSTREAM_SYNC_TAG} ]; then
23
- # Pull tags
24
- write_out -1 ' Fetching latest tags from upstream.\n'
25
- git fetch --quiet --shallow-since=" ${INPUT_SHALLOW_SINCE} " upstream --tags
26
- git tag
27
- UPSTREAM_TARGET=" ${INPUT_UPSTREAM_SYNC_TAG} "
32
+ UPSTREAM_COMMIT_HASH = $( git log --pretty=' format:%H %D' | egrep " .{40} tag: " ${INPUT_UPSTREAM_SYNC_TAG} | awk ' {print $1}' )
28
33
else
29
34
UPSTREAM_TARGET=" upstream/${INPUT_UPSTREAM_SYNC_BRANCH} "
35
+ UPSTREAM_COMMIT_HASH = $( git " rev-parse ${UPSTREAM_TARGET} " )
30
36
fi
31
- UPSTREAM_COMMIT_HASH=$( git " rev-parse ${UPSTREAM_TARGET} " )
32
37
33
38
34
39
# check is latest upstream hash is in target branch
You can’t perform that action at this time.
0 commit comments