mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-27 19:01:52 +03:00
31 lines
718 B
Bash
Executable File
31 lines
718 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"
|
|
elif [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then
|
|
echo "It's a Push"
|
|
|
|
export SHOULD_BUILD="yes"
|
|
export SHOULD_DEPLOY="no"
|
|
elif [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
|
|
echo "It's a Dispatch"
|
|
|
|
export SHOULD_DEPLOY="yes"
|
|
else
|
|
echo "It's a Cron"
|
|
|
|
export SHOULD_DEPLOY="yes"
|
|
fi
|
|
|
|
if [[ "${GITHUB_ENV}" ]]; then
|
|
echo "GITHUB_BRANCH=${GITHUB_BRANCH}" >> "${GITHUB_ENV}"
|
|
echo "SHOULD_BUILD=${SHOULD_BUILD}" >> "${GITHUB_ENV}"
|
|
echo "SHOULD_DEPLOY=${SHOULD_DEPLOY}" >> "${GITHUB_ENV}"
|
|
echo "VSCODE_QUALITY=${VSCODE_QUALITY}" >> "${GITHUB_ENV}"
|
|
fi
|