Bump rexml from 3.2.5 to 3.2.8 in /jekyll-static #27
Workflow file for this run
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: Jekyll build site | |
on: | |
push: | |
branches-ignore: | |
- 'master' | |
- 'production' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Build the site in the jekyll/builder container | |
run: | | |
docker run \ | |
-v ${{ github.workspace }}/jekyll-static:/srv/jekyll -v ${{ github.workspace }}/regions_www:/srv/jekyll/regions_www \ | |
-v ${{ github.workspace }}/vendor/bundle:/usr/local/bundle \ | |
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build -d regions_www --future" | |
- name: Setup Git config | |
run: | | |
git config user.name "PCT Build Bot" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config core.filemode false # need as jekyll/builder requires chmod to 777 which alters the file modes | |
- name: Commit any Jekyll changes | |
run: | | |
# Stage the file, commit and push | |
git add regions_www | |
# Only push if the commit was successful, i.e. files changed | |
# git diff-index from https://stackoverflow.com/a/3879077 | |
git diff-index --cached --quiet HEAD || (git commit -m "Updating regions_www from jekyll-static"; git push origin ${GITHUB_REF##*/}) |