This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new dd325a493 ci: Only fetch origin while in pull request (#3268)
dd325a493 is described below
commit dd325a49358409ff6c5ac31e3a5a26abee6ee2ac
Author: Xuanwo <[email protected]>
AuthorDate: Fri Oct 13 11:16:51 2023 +0800
ci: Only fetch origin while in pull request (#3268)
Signed-off-by: Xuanwo <[email protected]>
---
.github/workflows/test_planner.yml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/test_planner.yml
b/.github/workflows/test_planner.yml
index 535170d86..b6abca42b 100644
--- a/.github/workflows/test_planner.yml
+++ b/.github/workflows/test_planner.yml
@@ -44,8 +44,6 @@ jobs:
- name: Plan
id: plan
run: |
- git fetch origin main:main
-
event_name="${{ github.event_name }}"
repository="${{ github.repository }}"
files_changed=""
@@ -64,6 +62,7 @@ jobs:
has_secrets="True"
fi
+ git fetch origin main:main
files_changed=$(git diff --name-only main ${{
github.event.pull_request.head.sha }})
echo "Files changed:"
echo "$FILES_CHANGED"