This is an automated email from the ASF dual-hosted git repository.
gyfora pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new df5229e [FLINK-26991][docs] Limits docs build to main repo
df5229e is described below
commit df5229eecd42203e947d24a73bd33bf914e5c5fe
Author: Marton Balassi <[email protected]>
AuthorDate: Fri Apr 1 14:43:07 2022 +0200
[FLINK-26991][docs] Limits docs build to main repo
and to only relevant branches.
---
.github/workflows/docs.yaml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index 304b8a3..a054198 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -21,7 +21,14 @@ on:
workflow_dispatch:
jobs:
build-documentation:
+ if: github.repository == 'apache/flink-kubernetes-operator'
runs-on: ubuntu-latest
+ strategy:
+ max-parallel: 1
+ matrix:
+ branch:
+ - main
+ - release-0.1
steps:
- uses: actions/checkout@main
- name: Set branch environment variable
@@ -33,7 +40,7 @@ jobs:
echo "flink_branch=${currentBranch}" >> ${GITHUB_ENV}
if [ "${currentBranch} = "main" ]; then
echo "flink_alias=release-1.0" >> ${GITHUB_ENV}
- elif [ "${currentBranch} = "release-1.14" ]; then
+ elif [ "${currentBranch} = "release-0.1" ]; then
echo "flink_alias=stable" >> ${GITHUB_ENV}
fi
- name: Build documentation