You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by ww...@apache.org on 2021/02/04 22:43:09 UTC
[incubator-yunikorn-site] branch master updated: [YUNIKORN-524] use
apache approved action for push (#38)
This is an automated email from the ASF dual-hosted git repository.
wwei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-yunikorn-site.git
The following commit(s) were added to refs/heads/master by this push:
new 8360685 [YUNIKORN-524] use apache approved action for push (#38)
8360685 is described below
commit 83606852c1e9c88abd4432c255266dadff3f88be
Author: Wilfred Spiegelenburg <wi...@apache.org>
AuthorDate: Fri Feb 5 09:43:01 2021 +1100
[YUNIKORN-524] use apache approved action for push (#38)
Apache limits the actiona that are allowed in gthub actions. The action
used for the auto push is not on that list. Replace with standard push.
---
.github/workflows/auto-publish.yml | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml
index 1c125cc..50d1afb 100644
--- a/.github/workflows/auto-publish.yml
+++ b/.github/workflows/auto-publish.yml
@@ -31,6 +31,7 @@ jobs:
- name: "Build and run website locally"
working-directory: './yunikorn-master'
run: |
+ git log master --pretty=format:"Auto refresh: %s" -n 1 > ../asf-site-commit.txt
docker build -t yunikorn/yunikorn-website:1.0.0 .
docker run --name yunikorn-site -d -p 3000:3000 yunikorn/yunikorn-website:1.0.0
bash -c 'while true; do curl -Is http://localhost:3000 | head -n 1 | grep "OK"; [ $? -eq 0 ] && break; sleep 3; done'
@@ -51,10 +52,5 @@ jobs:
git config --local user.email "yunikornscheduler@gmail.com"
git config --local user.name "yunikorn-bot"
git add .
- git commit -m "Auto refresh web-site content" -a
- - name: "Push changes"
- uses: ad-m/github-push-action@master
- with:
- branch: 'asf-site'
- directory: './yunikorn-asf-site'
- github_token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
+ git commit -aF ../asf-site-commit.txt
+ git push