Update Travis references in scripts
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This script is executed by Travis CI when a PR is merged (i.e. in the `deploy` step).
|
||||
# This script is executed by GitHub Actions when a PR is merged (i.e. in the `deploy` step).
|
||||
set -ex
|
||||
|
||||
function initialize {
|
||||
if [ -z "$TLDRHOME" ]; then
|
||||
export TLDRHOME=${TRAVIS_BUILD_DIR:-$(pwd)}
|
||||
export TLDRHOME=${GITHUB_WORKSPACE:-$(pwd)}
|
||||
fi
|
||||
|
||||
export TLDR_ARCHIVE="tldr.zip"
|
||||
@@ -13,8 +13,8 @@ function initialize {
|
||||
export SITE_REPO_SLUG="tldr-pages/tldr-pages.github.io"
|
||||
|
||||
# Configure git.
|
||||
git config --global user.email "travis@travis-ci.org"
|
||||
git config --global user.name "Travis CI"
|
||||
git config --global user.email "actions@github.com"
|
||||
git config --global user.name "GitHub Actions"
|
||||
git config --global push.default simple
|
||||
git config --global diff.zip.textconv "unzip -c -a"
|
||||
|
||||
@@ -32,7 +32,7 @@ function upload_assets {
|
||||
|
||||
cd "$SITE_HOME"
|
||||
git add -A
|
||||
git commit -m "[TravisCI] uploaded assets after commits ${TRAVIS_COMMIT_RANGE}"
|
||||
git commit -m "[GitHub Actions] uploaded assets after commits ${TRAVIS_COMMIT_RANGE}"
|
||||
git push -q
|
||||
|
||||
echo "Assets (pages archive, index) deployed to static site."
|
||||
|
Reference in New Issue
Block a user