Rafagas workflow #946
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rafagas workflow | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 4 * * *' | |
jobs: | |
link-checker: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'geoinquiets' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install libcurl4-openssl-dev | |
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.4.1 | |
bundler-cache: true | |
- name: Cache folders | |
uses: actions/cache@v2 | |
with: | |
path: | | |
tmp | |
_site | |
key: rafagas-cache | |
- name: Build the site | |
run: bundle exec jekyll build | |
env: | |
NOKOGIRI_USE_SYSTEM_LIBRARIES: true | |
- name: Run the link check | |
id: link-check-run | |
run: | | |
bundle exec ruby script/proof-all.rb 2>&1 | tee output.log || true | |
echo "::set-output name=count::$(cat output.log | tail -n1)" |