Skip to content

Commit

Permalink
fix: ensure tag references are correct everywhere in generate-tags ac…
Browse files Browse the repository at this point in the history
…tion

- No prefixes
- Output original-tag

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
  • Loading branch information
weierophinney committed Feb 4, 2021
1 parent a7f5c3f commit 2c428f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/actions/generate-tags/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ let major = semver.major(tag);
let minor = major + '.' + semver.minor(tag);

let tags = [
'v' + major,
'v' + minor,
major,
minor,
];

core.info(`Original tag: ${tag}`);
core.info(`Tags: ${JSON.stringify(tags)}`);
core.setOutput('original-tag', tag);
core.setOutput('tags', tags.join("\n"));
2 changes: 1 addition & 1 deletion .github/workflows/release-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ jobs:
for TAG in ${TAGS};do
echo "Creating and pushing ${TAG}"
git tag -f ${TAG} ${ORIGINAL_TAG}
git push -f origin v${TAG}
git push -f origin ${TAG}
done
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v2
name: Gather CI configuration
id: matrix
uses: laminas/laminas-ci-matrix-action@v1
uses: laminas/laminas-ci-matrix-action@0

qa:
name: QA Checks
Expand All @@ -52,7 +52,7 @@ jobs:
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
steps:
- name: ${{ matrix.name }}
uses: laminas/laminas-continuous-integration-action@v0
uses: laminas/laminas-continuous-integration-action@0
with:
job: ${{ matrix.job }}
```

0 comments on commit 2c428f8

Please sign in to comment.