mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-04-07 16:09:24 +00:00
feat(outputs): Add outputs related to new release version
Add outputs related to new release version - `new-release-version`: Version of the new release - `new-release-major-version`: Major version of the new release - `new-release-minor-version`: Minor version of the new release - `new-release-patch-version`: Patch version of the new release
This commit is contained in:
parent
150d0509de
commit
12a1a39975
4 changed files with 31 additions and 6 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -60,9 +60,9 @@ jobs:
|
|||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
- name: Push updates to branch v1
|
||||
- name: Push updates to branch for major version
|
||||
if: steps.semantic.outputs.new-release-published == 'true'
|
||||
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v1"
|
||||
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/${steps.semantic.outputs.new-release-major-version}"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue