Created
March 5, 2021 18:53
-
-
Save stefanzweifel/0eaad348f8f0ca8a869b46c7789c2fee to your computer and use it in GitHub Desktop.
GitHub Actions workflow to run `alex`
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: "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