Skip to content

Commit 2c428f8

Browse files
committed
fix: ensure tag references are correct everywhere in generate-tags action
- No prefixes - Output original-tag Signed-off-by: Matthew Weier O'Phinney <[email protected]>
1 parent a7f5c3f commit 2c428f8

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/actions/generate-tags/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ let major = semver.major(tag);
88
let minor = major + '.' + semver.minor(tag);
99

1010
let tags = [
11-
'v' + major,
12-
'v' + minor,
11+
major,
12+
minor,
1313
];
1414

15+
core.info(`Original tag: ${tag}`);
1516
core.info(`Tags: ${JSON.stringify(tags)}`);
17+
core.setOutput('original-tag', tag);
1618
core.setOutput('tags', tags.join("\n"));

.github/workflows/release-tags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ jobs:
3636
for TAG in ${TAGS};do
3737
echo "Creating and pushing ${TAG}"
3838
git tag -f ${TAG} ${ORIGINAL_TAG}
39-
git push -f origin v${TAG}
39+
git push -f origin ${TAG}
4040
done

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v2
4242
name: Gather CI configuration
4343
id: matrix
44-
uses: laminas/laminas-ci-matrix-action@v1
44+
uses: laminas/laminas-ci-matrix-action@0
4545

4646
qa:
4747
name: QA Checks
@@ -52,7 +52,7 @@ jobs:
5252
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
5353
steps:
5454
- name: ${{ matrix.name }}
55-
uses: laminas/laminas-continuous-integration-action@v0
55+
uses: laminas/laminas-continuous-integration-action@0
5656
with:
5757
job: ${{ matrix.job }}
5858
```

0 commit comments

Comments
 (0)