We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 009008f + ad13f88 commit adcfba4Copy full SHA for adcfba4
1 file changed
.github/workflows/music-social.yml
@@ -77,8 +77,10 @@ jobs:
77
script: |
78
const sha = process.env.COMMIT_SHA || '';
79
const shortSha = sha.slice(0, 7);
80
- const commitMsgRaw = process.env.COMMIT_MSG || 'Mise à jour manuelle';
81
- const commitMsg = (commitMsgRaw.split(/\r?\n/).find(line => line.trim()) || 'Mise à jour manuelle').trim();
+ const defaultCommitMsg = 'Mise à jour manuelle';
+ const commitMsg = ((process.env.COMMIT_MSG || defaultCommitMsg)
82
+ .split(/\r?\n/)
83
+ .find(line => line.trim().length > 0) || defaultCommitMsg).trim();
84
const author = process.env.COMMIT_AUTHOR || 'DavidKRK';
85
const linesAdded = process.env.LINES_ADDED;
86
const linesRemoved = process.env.LINES_REMOVED;
0 commit comments