We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7815797 commit 9b524baCopy full SHA for 9b524ba
1 file changed
.github/workflows/sync-release-tag.yml
@@ -43,14 +43,18 @@ jobs:
43
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44
run: |
45
UPSTREAM_TAG=""
46
+ ENV_UPSTREAM_TAG=""
47
48
if [ -f .ccs-fork-upstream.env ]; then
49
# shellcheck disable=SC1091
50
. ./.ccs-fork-upstream.env
51
+ ENV_UPSTREAM_TAG="${UPSTREAM_TAG}"
52
fi
53
54
+ UPSTREAM_TAG=$(git tag --merged HEAD --list 'v[0-9]*.[0-9]*.[0-9]*' --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -1 || true)
55
+
56
if ! echo "${UPSTREAM_TAG}" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
- UPSTREAM_TAG=$(git tag --merged HEAD --list 'v[0-9]*.[0-9]*.[0-9]*' --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -1 || true)
57
+ UPSTREAM_TAG="${ENV_UPSTREAM_TAG}"
58
59
60
if [ -z "$UPSTREAM_TAG" ]; then
0 commit comments