feat: Add Spanish translation to all documentation files #88
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: Receive PR | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
validate_hugo_content: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./src | |
name: Hugo content processing | |
steps: | |
- name: Checkout PR code | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Cache Docker layers | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }} | |
restore-keys: | | |
${{ runner.os }}-buildx- | |
- name: Build Hugo container image | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./src | |
file: ./src/Dockerfile | |
# Do not push to remote registry | |
push: false | |
# Load as a local image | |
load: true | |
tags: temporary/hugo-ubuntu:latest | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new | |
- # Temp fix | |
# https://github.com/docker/build-push-action/issues/252 | |
# https://github.com/moby/buildkit/issues/1896 | |
name: Move cache to keep size low | |
run: | | |
rm -rf /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | |
- name: Validate Hugo content, internal, and external web links | |
run: ./make_hugo.sh -v | |
working-directory: ${{env.working-directory}} | |
# These steps should always run | |
- name: Save PR number | |
if: success() || failure() | |
run: | | |
mkdir -p /tmp/pr | |
echo ${{ github.event.number }} > /tmp/pr/NR | |
- name: Upload pr artifact | |
if: success() || failure() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: pr | |
path: /tmp/pr |