Skip to content

Commit

Permalink
Ensure it's always run, but only pushed on master
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Mar 13, 2024
1 parent 49fa04e commit 9827283
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: build docs
on:
push:
branches:
- master
on: push

jobs:
build_docs:
Expand Down Expand Up @@ -36,8 +33,12 @@ jobs:
| grep "^slug:" | awk -F':' '{gsub(/^ +/, "", $2); print $2}' | sort | uniq -c \
| awk '{if ($1 > 1) { print "duplicate slug for: " $2; exit 1}}'
- name: Print the lines of the generated docs
run: wc -l ooni-docs/src/content/docs/backend/*

- name: Commit changes
id: commit
# Only push the docs update when we are in master
if: github.ref == 'refs/heads/master'
run: |
cd ooni-docs
git config --global user.email "[email protected]"
Expand Down

0 comments on commit 9827283

Please sign in to comment.