19 lines
No EOL
337 B
Bash
Executable file
19 lines
No EOL
337 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [[ $github.event_name == "pull_request" ]]; then
|
|
echo "It's a PR"
|
|
|
|
export SHOULD_BUILD="yes"
|
|
export SHOULD_DEPLOY="no"
|
|
else
|
|
echo "It's a cron"
|
|
|
|
export SHOULD_DEPLOY="yes"
|
|
fi
|
|
|
|
if [[ $GITHUB_ENV ]]; then
|
|
echo "SHOULD_BUILD=$SHOULD_BUILD" >> $GITHUB_ENV
|
|
echo "SHOULD_DEPLOY=$SHOULD_DEPLOY" >> $GITHUB_ENV
|
|
fi |