Skip to content

Instantly share code, notes, and snippets.

@stefanzweifel
Created March 5, 2021 18:53
Show Gist options
  • Save stefanzweifel/0eaad348f8f0ca8a869b46c7789c2fee to your computer and use it in GitHub Desktop.
Save stefanzweifel/0eaad348f8f0ca8a869b46c7789c2fee to your computer and use it in GitHub Desktop.
GitHub Actions workflow to run `alex`
name: "Content Standards"
on:
pull_request: null
push:
branches:
- "main"
jobs:
content-standards:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache node modules
id: cache-node
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-v2-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-v2
- name: Install Frontend Dependencies
if: steps.cache-node.outputs.cache-hit != 'true'
run: yarn install
env:
CI: true
- name: Run Alex
run: alex ./source/_posts/202**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment