1name: "Trigger docs.openssl.org deployment"
2
3on:
4  push:
5    branches:
6      - "openssl-3.[0-9]+"
7      - "master"
8    paths:
9      - "doc/man*/**"
10
11jobs:
12  trigger:
13    runs-on: ubuntu-latest
14    steps:
15      - name: "Trigger deployment workflow"
16        run: |
17          gh workflow run -f branch=${{ github.ref_name }} deploy-site.yaml
18          sleep 3
19          RUN_ID=$(gh run list -w deploy-site.yaml -L 1 --json databaseId -q ".[0].databaseId")
20          gh run watch ${RUN_ID} --exit-status
21        env:
22          GH_REPO: "openssl/openssl-docs"
23          GH_TOKEN: ${{ secrets.OPENSSL_MACHINE_TOKEN }}
24