Skip to content

Commit

Permalink
Fix git push command in create event script
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust committed Jan 9, 2025
1 parent 328659c commit ec19c10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/node/create-event.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@ export default async function (jsonfile, options) {
const { stdout, stderr } = await run('git push origin main', { cwd: repo.name, ignoreErrors: true });
if (stderr &&
!stderr.match(/Everything up-to-date/) &&
!stderr.match(/To github.com:/)) {
!stderr.match(/To (.*)github\.com/)) {
console.error(`Could not run "git push origin main" in folder "${repo.name}"`);
console.error(stdout);
console.error(stderr);
process.exit(1);
}
Expand Down

0 comments on commit ec19c10

Please sign in to comment.