@ -30,6 +30,7 @@ jobs:
run: mkdocs build
deploy:
if: github.event.workflow_run.event == 'push' && contains(fromJson('["master", "main"]'), github.event.workflow_run.head_branch)
needs: build
name: Deploy docs
runs-on: ubuntu-latest
@ -1,13 +1,9 @@
name: Update contributors
on:
push:
branches:
- master
on: [push, pull_request]
jobs:
update_contributors:
if: github.event_name == 'push' && contains(fromJson('["refs/heads/master", "refs/heads/main"]'), github.ref)
steps:
- name: Checkout code