diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 74f3fe2430f..09ef053bb39 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -11,5 +11,5 @@
Overriding CI behaviors
- By default, the upstream dev CI is disabled on pull request and push events. You can override this behavior per commit by adding a `[test-upstream]` tag to the first line of the commit message. For documentation-only commits, you can skip the CI per commit by adding a `[skip-ci]` tag to the first line of the commit message
+ By default, the upstream dev CI is disabled on pull request and push events. You can override this behavior per commit by adding a [test-upstream] tag to the first line of the commit message. For documentation-only commits, you can skip the CI per commit by adding a [skip-ci] tag to the first line of the commit message
diff --git a/.github/actions/detect-ci-trigger/script.sh b/.github/actions/detect-ci-trigger/script.sh
index d54da9b7ef0..c98175a5a08 100644
--- a/.github/actions/detect-ci-trigger/script.sh
+++ b/.github/actions/detect-ci-trigger/script.sh
@@ -3,11 +3,17 @@ event_name="$1"
keyword="$2"
echo "::group::fetch a sufficient number of commits"
-if [[ "$event_name" == "pull_request" ]]; then
- git fetch --deepen=1 --no-tags 2>&1
-else
- echo "nothing to do."
-fi
+echo "skipped"
+# git log -n 5 2>&1
+# if [[ "$event_name" == "pull_request" ]]; then
+# ref=$(git log -1 --format='%H')
+# git -c protocol.version=2 fetch --deepen=2 --no-tags --prune --progress -q origin $ref 2>&1
+# git log FETCH_HEAD
+# git checkout FETCH_HEAD
+# else
+# echo "nothing to do."
+# fi
+# git log -n 5 2>&1
echo "::endgroup::"
echo "::group::extracting the commit message"
diff --git a/.github/workflows/ci-additional.yaml b/.github/workflows/ci-additional.yaml
index 00f8ea42b97..fdc61f2f4f7 100644
--- a/.github/workflows/ci-additional.yaml
+++ b/.github/workflows/ci-additional.yaml
@@ -17,6 +17,8 @@ jobs:
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: 2
- uses: ./.github/actions/detect-ci-trigger
id: detect-trigger
with:
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 849d8a445a5..7d7326eb5c2 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -17,6 +17,8 @@ jobs:
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: 2
- uses: ./.github/actions/detect-ci-trigger
id: detect-trigger
with:
diff --git a/.github/workflows/upstream-dev-ci.yaml b/.github/workflows/upstream-dev-ci.yaml
index bb325c1837e..6c04457a204 100644
--- a/.github/workflows/upstream-dev-ci.yaml
+++ b/.github/workflows/upstream-dev-ci.yaml
@@ -19,6 +19,8 @@ jobs:
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: 2
- uses: ./.github/actions/detect-ci-trigger
id: detect-trigger
with: