abinoda / label-when-approved-action

GitHub Action that labels approved pull requests
MIT License
191 stars 130 forks source link

Action fails on existing PRs that don't define variable ADD_LABEL #7

Closed Nikschavan closed 5 years ago

Nikschavan commented 5 years ago

Error message - /entrypoint.sh: line 47: ADD_LABEL: unbound variable Example log of an action here

This is related to #3

abinoda commented 5 years ago

@rciovati could you investigate?

rciovati commented 5 years ago

@abinoda sure, it's definitely something I broke 😅 I'm not a bash guru but from my understanding changing the flags at the beginning of the script should work:

set -eu

to be only:

set -e

I cannot send a PR right now, I can probably do that tomorrow.