Skip to content

Change "Apple M1" to "Apple M-series". #17

Change "Apple M1" to "Apple M-series".

Change "Apple M1" to "Apple M-series". #17

name: Trigger Netlify to build docs
on:
push:
branches:
- 'main'
paths:
- 'posts/**'
jobs:
build:
runs-on: ubuntu-latest
env:
TOKEN: ${{ secrets.NETLIFY_BUILD_HOOK }}
steps:
- name: Set trigger_title environment variable
run: |
echo "TRIGGER_TITLE=Triggered+by+farmOS-community-blog+source+repo" >> $GITHUB_ENV
- name: Set trigger_branch env.var for main production build
run: |
echo "TRIGGER_BRANCH=main" >> $GITHUB_ENV
- name: Trigger Netlify Build Hook
run: curl -s -X POST -d {} "https://api.netlify.com/build_hooks/${TOKEN}?trigger_branch=${TRIGGER_BRANCH}&trigger_title=${TRIGGER_TITLE}"
if: ${{ env.TOKEN != '' }}