File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ jobs:
13
13
- name : Compile tag list
14
14
id : tags
15
15
run : |
16
+ TAG=${GITHUB_REF/refs\/tags\//}
16
17
PREFIX=ghrc.io/laminas/laminas-ci-matrix
17
- MAJOR="${PREFIX}:$(echo ${GITHUB_REF } | cut -d. -f1)"
18
- MINOR="${MAJOR}.$(echo ${GITHUB_REF } | cut -d. -f2)"
19
- PATCH="${PREFIX}:${GITHUB_REF }"
18
+ MAJOR="${PREFIX}:$(echo ${TAG } | cut -d. -f1)"
19
+ MINOR="${MAJOR}.$(echo ${TAG } | cut -d. -f2)"
20
+ PATCH="${PREFIX}:${TAG }"
20
21
echo "::set-output name=tags::${MAJOR}%0A${MINOR}%0A${PATCH}"
21
22
22
23
release-container :
Original file line number Diff line number Diff line change 13
13
- name : Compile tag list
14
14
id : tags
15
15
run : |
16
- MAJOR="v$(echo ${GITHUB_REF} | cut -d. -f1)"
16
+ TAG=${GITHUB_REF/refs\/tags\//}
17
+ MAJOR="v$(echo ${TAG} | cut -d. -f1)"
17
18
MINOR="${MAJOR}.$(echo ${GITHUB_REF} | cut -d. -f2)"
18
19
echo "::set-output name=tags::${MAJOR}%0A${MINOR}"
19
20
29
30
ORIGINAL_TAG : ${{ github.ref }}
30
31
TAGS : ${{ needs.tags.outputs.tags }}
31
32
run : |
33
+ ORIGINAL_TAG=${ORIGINAL_TAG/refs\/tags\//}
32
34
for TAG in ${TAGS};do
33
35
echo "Creating and pushing ${TAG}"
34
36
git tag -f ${TAG} ${ORIGINAL_TAG}
You can’t perform that action at this time.
0 commit comments