vscodium/check_cron_or_pr.sh
2021-03-10 16:48:45 +01:00

17 lines
294 B
Bash

#!/bin/bash
set -e
if [[ $github.event.number ]]; then
# it's a PR
export SHOULD_BUILD="yes"
export SHOULD_DEPLOY="no"
else
export SHOULD_DEPLOY="yes"
fi
if [[ $GITHUB_ENV ]]; then
echo "SHOULD_BUILD=$SHOULD_BUILD" >> $GITHUB_ENV
echo "SHOULD_DEPLOY=$SHOULD_DEPLOY" >> $GITHUB_ENV
fi