n3nash commented on a change in pull request #1706:
URL: https://github.com/apache/hudi/pull/1706#discussion_r438898007
##########
File path: .github/workflows/web.yml
##########
@@ -0,0 +1,51 @@
+name: web sync
+
+on:
+ issue_comment:
+ types: [created]
+
+jobs:
+ bot:
+ runs-on: ubuntu-latest
+ if: ${{ github.event.comment.body == 'sync testing site' }}
+
+ steps:
+ - name: clone repository
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: fetch pull request branch
+ run: |
+ git fetch origin +refs/pull/${{ github.event.issue.number }}/merge
+ git checkout FETCH_HEAD
+
+ siteRef=`git show-ref --hash --verify refs/remotes/origin/asf-site`
+ pullRef=`git log -1 --pretty=format:"%P" -1`
+ if [[ $pullRef =~ $siteRef ]]
+ then
+ exit 0;
+ else
+ exit -1;
Review comment:
What effect does a -1 signal have ? Will it kill the build ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]