Skip to content

Commit c989e10

Browse files
author
Automated
committed
Latest data: Wed Apr 21 17:13:10 UTC 2021
1 parent 41a6fa3 commit c989e10

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

dist/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ async function run() {
9797
'-m',
9898
`Capturing event ${eventName} (id: ${id})`,
9999
]);
100-
const code = await exec_1.exec('git', ['push']);
101-
if (code === 0) {
102-
// success! We're finished.
100+
try {
101+
await exec_1.exec('git', ['push']);
102+
// if the push succeeded, we're finished
103103
core.info('Success!');
104104
break;
105105
}
106-
else {
106+
catch (error) {
107107
core.info('Retrying because of conflicts...');
108108
await exec_1.exec('git', ['reset', '--hard', 'HEAD']);
109109
await exec_1.exec('git', ['pull']);

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)