Skip to content

Commit 3824712

Browse files
committed
Fix branch pushing and event indexing
1 parent 3f8abe9 commit 3824712

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function run(): Promise<void> {
6767
const payload = core.getInput(e)
6868
if (payload === '') {
6969
// no event
70-
return
70+
continue
7171
}
7272
await db.run('INSERT INTO events (kind, event) values (:e, :payload)', {
7373
e,
@@ -81,7 +81,7 @@ async function run(): Promise<void> {
8181
await db.close()
8282
await exec('git', ['add', dbfile])
8383
await exec('git', ['commit', '-m', 'Adding data to repo'])
84-
await exec('git', ['push'])
84+
await exec('git', ['push', 'origin', branch])
8585
core.endGroup()
8686
}
8787

0 commit comments

Comments
 (0)