This is an automated email from the ASF dual-hosted git repository.
kaihsun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git
The following commit(s) were added to refs/heads/master by this push:
new 4b6251c SUBMARINE-947. Deploy website must be limited to apache
submarine repository
4b6251c is described below
commit 4b6251c0517051020bfc1e8eeb43a424e4b57e8a
Author: KUAN-HSUN-LI <[email protected]>
AuthorDate: Tue Jul 20 17:05:07 2021 +0800
SUBMARINE-947. Deploy website must be limited to apache submarine repository
### What is this PR for?
1. Check website job should be enabled to run on Pull Requests.
2. Deploy website job must only run on the apache submarine repository and
the master branch.
### What type of PR is it?
[Improvement]
### Todos
### What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-947
### How should this be tested?
### Screenshots (if appropriate)
### Questions:
* Do the license files need updating? No
* Are there breaking changes for older versions? No
* Does this need new documentation? No
Author: KUAN-HSUN-LI <[email protected]>
Signed-off-by: Kai-Hsun Chen <[email protected]>
Closes #687 from KUAN-HSUN-LI/SUBMARINE-947 and squashes the following
commits:
5d555be0 [KUAN-HSUN-LI] SUBMARINE-947. fix GitHub Actions' website job
condition
de8143f2 [KUAN-HSUN-LI] SUBMARINE-947. fix GitHub Actions' website job
condition
---
.github/workflows/deploy_website.yml | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/deploy_website.yml
b/.github/workflows/deploy_website.yml
index fc994ae..c1a1553 100644
--- a/.github/workflows/deploy_website.yml
+++ b/.github/workflows/deploy_website.yml
@@ -15,16 +15,11 @@
name: Deploy Submarine documentation
-# Trigger the workflow on master branch push and pull request
-on:
- pull_request:
- branches: [master]
- push:
- branches: [master]
+# Trigger the workflow on push or pull request
+on: [push, pull_request]
jobs:
checks-website:
- if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -43,7 +38,7 @@ jobs:
fi
npm run build
deploy-website:
- if: github.event_name != 'pull_request'
+ if: github.repository == 'apache/submarine' && github.ref ==
'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]