From f2a4681f26154363b1b62a204319ca549d48a310 Mon Sep 17 00:00:00 2001 From: EricFromCanada Date: Wed, 4 Sep 2019 12:23:56 -0400 Subject: [PATCH] workflows/apidoc: combine steps to preserve current directory --- .github/workflows/apidoc.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/apidoc.yml b/.github/workflows/apidoc.yml index 76d233aad9..147c63a493 100644 --- a/.github/workflows/apidoc.yml +++ b/.github/workflows/apidoc.yml @@ -17,7 +17,7 @@ jobs: with: version: '>=2.3' - - name: Set up repositories + - name: Build and push API docs run: | # clone rubydoc.brew.sh with SSH so we can push back git clone git@github.com:Homebrew/rubydoc.brew.sh @@ -26,18 +26,9 @@ jobs: # clone latest Homebrew/brew git clone --depth=1 https://github.com/Homebrew/brew - - name: Install RubyGems - run: | - # silence bundler complaining about being root - mkdir ~/.bundle - echo 'BUNDLE_SILENCE_ROOT_WARNING: "1"' > ~/.bundle/config - + # run rake to build documentation gem install bundler bundle install --jobs 4 --retry 3 - - - name: Build and push API docs - run: | - # run rake to build documentation bundle exec rake # commit and push generated files