Skip to content

Commit 3dfdeed

Browse files
committed
Rename GITHUB_ACTION to GITHUB_ACTIONS.
GITHUB_ACTIONS showing always true on GitHub Actions environment is a right environment variable See https://docs.github.com/en/actions/reference/environment-variables .
1 parent 557bd5f commit 3dfdeed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.travis_setup.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CHANGED_PWD=false
99
CHANGED_PWD_BY_RECREATE=false
1010

1111
# Install the default used DB if DB is not set.
12-
if [[ -n ${GITHUB_ACTION-} && -z ${DB-} ]]; then
12+
if [[ -n ${GITHUB_ACTIONS-} && -z ${DB-} ]]; then
1313
if command -v lsb_release > /dev/null; then
1414
case "$(lsb_release -cs)" in
1515
xenial | bionic)
@@ -45,7 +45,7 @@ fi
4545

4646
# Install MariaDB client headers after Travis CI fix for MariaDB 10.2 broke earlier 10.x
4747
if [[ -n ${DB-} && x$DB =~ ^xmariadb10.0 ]]; then
48-
if [[ -n ${GITHUB_ACTION-} ]]; then
48+
if [[ -n ${GITHUB_ACTIONS-} ]]; then
4949
sudo apt-get install -y -o Dpkg::Options::='--force-confnew' mariadb-server mariadb-server-10.0 libmariadb2
5050
CHANGED_PWD_BY_RECREATE=true
5151
else
@@ -55,7 +55,7 @@ fi
5555

5656
# Install MariaDB client headers after Travis CI fix for MariaDB 10.2 broke earlier 10.x
5757
if [[ -n ${DB-} && x$DB =~ ^xmariadb10.1 ]]; then
58-
if [[ -n ${GITHUB_ACTION-} ]]; then
58+
if [[ -n ${GITHUB_ACTIONS-} ]]; then
5959
sudo apt-get install -y -o Dpkg::Options::='--force-confnew' mariadb-server mariadb-server-10.1 libmariadb-dev
6060
CHANGED_PWD_BY_RECREATE=true
6161
else
@@ -70,7 +70,7 @@ if [[ -n ${DB-} && x$DB =~ ^xmariadb10.2 ]]; then
7070
fi
7171

7272
# Install MariaDB 10.3 if DB=mariadb10.3
73-
if [[ -n ${GITHUB_ACTION-} && -n ${DB-} && x$DB =~ ^xmariadb10.3 ]]; then
73+
if [[ -n ${GITHUB_ACTIONS-} && -n ${DB-} && x$DB =~ ^xmariadb10.3 ]]; then
7474
sudo apt-get install -y -o Dpkg::Options::='--force-confnew' mariadb-server mariadb-server-10.3 libmariadb-dev
7575
CHANGED_PWD=true
7676
fi
@@ -95,7 +95,7 @@ if [[ x$OSTYPE =~ ^xdarwin ]]; then
9595
else
9696
mysqld --version
9797

98-
if [[ -n ${GITHUB_ACTION-} && -f /etc/mysql/debian.cnf ]]; then
98+
if [[ -n ${GITHUB_ACTIONS-} && -f /etc/mysql/debian.cnf ]]; then
9999
MYSQL_OPTS='--defaults-extra-file=/etc/mysql/debian.cnf'
100100
# Install from packages in OS official packages.
101101
if sudo grep -q debian-sys-maint /etc/mysql/debian.cnf; then

0 commit comments

Comments
 (0)