You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/12/28 11:36:17 UTC

[camel-website] branch master updated: fix: make sure we checkout the PR not the mainline

This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new fde26d8  fix: make sure we checkout the PR not the mainline
fde26d8 is described below

commit fde26d8305c2b95f106656fbe422b264793504d9
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Mon Dec 28 12:36:06 2020 +0100

    fix: make sure we checkout the PR not the mainline
---
 .github/workflows/pr.yaml | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml
index e7b9b4a..52e3dcf 100644
--- a/.github/workflows/pr.yaml
+++ b/.github/workflows/pr.yaml
@@ -26,14 +26,19 @@ jobs:
   check-cache:
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@v2
-    - name: Run check
-      run: yarn workspaces foreach install --check-cache
+      - uses: actions/checkout@v2
+        with:
+          persist-credentials: false
+      - name: Run check
+        run: yarn workspaces foreach install --check-cache
   build:
     needs: check-cache
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
+        with:
+          ref: ${{ github.event.pull_request.head.sha }}
+          persist-credentials: false
       - name: Build
         run: yarn build-all
       - uses: actions/upload-artifact@v2
@@ -45,6 +50,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
+        with:
+          persist-credentials: false
       - uses: actions/download-artifact@v2
         with:
           name: website
@@ -71,6 +78,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
+        with:
+          persist-credentials: false
       - uses: actions/download-artifact@v2
         with:
           name: website