Trigger docs update to the website build workflow on GitHub Action

This commit is contained in:
Daniele Varrazzo 2021-06-17 12:39:41 +01:00
parent dd9c6659bc
commit 46bc175cc7

View File

@ -3,16 +3,16 @@ name: Build documentation
on: on:
push: push:
branches: branches:
# This should match the DOC_BRANCH value in the psycopg-website Makefile
- master - master
jobs: jobs:
docs: docs:
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2
- name: Trigger docs build - name: Trigger docs build
run: ./scripts/travis_update_docs.sh uses: peter-evans/repository-dispatch@v1
env: with:
TRAVIS_BRANCH: master repository: psycopg/psycopg-website
TRAVIS_TOKEN: ${{ secrets.TRAVIS_TOKEN }} event-type: psycopg2-commit
token: ${{ secrets.ACCESS_TOKEN }}