Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
docs(readme): add check version > exit 1 example
Browse files Browse the repository at this point in the history
  • Loading branch information
fforootd committed Dec 31, 2019
1 parent e48edd7 commit f971a07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
uses: actions/checkout@v1
- name: Create Version
uses: caos/semantic-release@v0.2.4
- name: Check if Version Tag is available
if: env.CAOS_NEXT_VERSION == ''
run: exit 1
```

For `--dry-run` just pass the argument to substitute the `CMD` command from the image.
Expand All @@ -66,7 +69,7 @@ module.exports = {
"@semantic-release/release-notes-generator",
"@semantic-release/github",
["@semantic-release/exec", {
"prepareCmd": "echo '::set-env name=CAOS_NEXT_VERSION::${nextRelease.version}'"
"prepareCmd": "echo '::set-env name=CAOS_NEXT_VERSION::v${nextRelease.version}'"
}],
]
};
Expand Down

0 comments on commit f971a07

Please sign in to comment.