Skip to content

Commit

Permalink
fix: should not force snapshot when nightly is set (#321)
Browse files Browse the repository at this point in the history
* fix: should not force snapshot when nightly is set

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: build

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Jan 14, 2022
1 parent 5df302e commit 79d4afb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ async function run(): Promise<void> {
let snapshot = '';
if (args.split(' ').indexOf('release') > -1) {
if (isTagDirty) {
core.info(`No tag found for commit ${commit}. Snapshot forced`);
if (!args.includes('--snapshot')) {
if (!args.includes('--snapshot') && !args.includes('--nightly')) {
core.info(`No tag found for commit ${commit}. Snapshot forced`);
snapshot = ' --snapshot';
}
} else {
Expand Down

0 comments on commit 79d4afb

Please sign in to comment.