We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6b1c4f commit 6f4832cCopy full SHA for 6f4832c
2 files changed
.github/workflows/deploy-website.yml
@@ -1,13 +1,13 @@
1
name: Deploy website
2
on:
3
- workflow_run:
4
- workflows: ["Generate API reference"]
5
- branches: [main]
6
- types: [completed]
+ push:
+ branches:
+ - main
7
jobs:
+ generate-api-reference:
8
+ uses: ./.github/workflows/generate-api-reference.yml
9
deploy:
- needs: install-run-protoc-gen-doc
10
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
+ needs: generate-api-reference
11
runs-on: ubuntu-latest
12
steps:
13
- uses: actions/checkout@v3
.github/workflows/generate-api-reference.yml
@@ -1,5 +1,9 @@
name: Generate API reference
-on: push
+on:
+ branches-ignore:
+ - main # worflow will be call by deployment if branch is main
+ workflow_call:
permissions:
contents: write
0 commit comments