Skip to content

Commit

Permalink
Fixed skip_ci variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsridharan committed Feb 11, 2021
1 parent ad7e795 commit 0b2de74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ const source_file_location = async( WORKFLOW_FILES_DIR, REPOSITORY_OWNER, REPOSI
const commitfile = async( local_path, skip_ci, commit_message ) => {
let message = `💬 - Files Synced | Runner ID : ${toolkit.input.env( 'GITHUB_RUN_NUMBER' )} | ⚡ Triggered By ${toolkit.input.env( 'GITHUB_REPOSITORY' )}`;

if( typeof commit_message === 'undefined' && true === skip_ci ) {
message = message + ' | [skip ci] ';
if( typeof commit_message === 'undefined' && skip_ci ) {
message = '[skip ci] | ' + message;
}

if( typeof commit_message === 'string' && ( commit_message !== 'false' && commit_message !== 'true' ) ) {
Expand Down

0 comments on commit 0b2de74

Please sign in to comment.