Skip to content

Commit

Permalink
Alter push-docs script to work with Github action CI [RHELDST-5504]
Browse files Browse the repository at this point in the history
  • Loading branch information
negillett committed Apr 12, 2021
1 parent cd2d758 commit 26eec96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/push-docs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ORG=release-engineering
REPO=exodus-lambda

enabled(){
if [ "$TRAVIS_BRANCH" != "master" ] || [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
return 1
fi
}
Expand Down Expand Up @@ -36,4 +36,4 @@ if enabled; then
git push -q origin HEAD:refs/heads/gh-pages
else
echo "Docs would now be pushed, if this were submitted to master."
fi
fi

0 comments on commit 26eec96

Please sign in to comment.