diff --git a/.github/workflows/src/app/action-event.js b/.github/workflows/src/app/action-event.js index 8d15093b..826209bd 100644 --- a/.github/workflows/src/app/action-event.js +++ b/.github/workflows/src/app/action-event.js @@ -15,7 +15,7 @@ class ActionsEvent { if(!this.data) { return } - console.log(this.data) + // I guess some event files don't have EventData this.event = this.data.eventData || this.data this.pull = this.data.pull_request diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index c6e6c27e..37f1f07c 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -38,7 +38,11 @@ const fileValidator = require('./app/file-validator.js'); airtable.userParticipated2020(actionEvent.pullAuthor), educationWeb.hasPack(actionEvent.pullAuthor), airtable.fetch2021Graduate(actionEvent.pullAuthor) - ]) + ]).catch((errors)=>{ + for(const error of errors) { + console.log(error) + } + }) const pull = results[0] const user2021 = results[3]