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

yihaochen pushed a commit to branch migrate-ci-changes
in repository https://gitbox.apache.org/repos/asf/skywalking.git


The following commit(s) were added to refs/heads/migrate-ci-changes by this 
push:
     new 755033f563 Migrate to new changes action
755033f563 is described below

commit 755033f56357e1a422be0958d0b7cb9269373567
Author: Superskyyy <[email protected]>
AuthorDate: Tue May 16 01:51:17 2023 -0400

    Migrate to new changes action
---
 .github/workflows/skywalking.yaml | 77 +++++++++++++++++++++++----------------
 1 file changed, 45 insertions(+), 32 deletions(-)

diff --git a/.github/workflows/skywalking.yaml 
b/.github/workflows/skywalking.yaml
index 5a75037ed7..4eaa421faf 100644
--- a/.github/workflows/skywalking.yaml
+++ b/.github/workflows/skywalking.yaml
@@ -107,40 +107,53 @@ jobs:
     if: github.event_name != 'schedule'
     timeout-minutes: 10
     outputs:
-      oap: ${{ steps.filter.outputs.oap }}
-      pom: ${{ steps.filter.outputs.pom }}
-      ui: ${{ steps.filter.outputs.ui }}
+      oap: ${{ steps.filter-oap.outputs.any_modified }}
+      pom: ${{ steps.filter-pom.outputs.any_modified }}
+      ui: ${{ steps.filter-ui.outputs.any_modified }}
     steps:
       - uses: actions/checkout@v3 # required for push event
-      - name: Check for file changes
-        uses: getsentry/paths-filter@v2
-        id: filter
-        with:
-          token: ${{ github.token }}
-          # The following is a single composite pattern that allows next CI 
steps,
-          # the pattern is in form of [not (foo or bar)] to be safe.
-          # When new files come in, the CI will NOT ignore them unless listed,
-          # so remember to extend here if they do not serve functional 
purposes.
-          # NOTE: careful with using ** in expression, keep !**/{old, new 
things}.
-          filters: |
-            oap:
-              - "!**/{\
-              *.md,*.txt,\
-              skywalking-ui,\
-              .asf.yaml,.dlc.json,.gitignore,.licenserc.yaml,\
-              codeStyle.xml,\
-              HEADER,LICENSE,NOTICE,\
-              docs/**,\
-              .github/workflows/codeql.yaml,\
-              .github/(ISSUE_TEMPLATE/**|PULL_REQUEST_TEMPLATE),\
-              dist-material/release-docs/**,\
-              component-libraries.yml\
-              }"
-            pom:
-              - "**/pom.xml"
-            ui:
-              - "skywalking-ui"
-          list-files: json # logs matched files
+        with:
+          fetch-depth: 0
+      - name: Filter OAP
+        id: filter-oap
+        uses: tj-actions/changed-files@v35
+        with:
+          files_ignore: |
+            **/*.{md,txt}
+            skywalking-ui
+            .asf.yaml
+            .dlc.json
+            .gitignore
+            .licenserc.yaml
+            codeStyle.xml
+            HEADER
+            LICENSE
+            NOTICE
+            docs/**
+            .github/workflows/codeql.yaml
+            .github/ISSUE_TEMPLATE/**
+            .github/PULL_REQUEST_TEMPLATE
+            dist-material/release-docs/**
+            component-libraries.yml
+      - name: Filter POM
+        id: filter-pom
+        uses: tj-actions/changed-files@v35
+        with:
+          files: |
+            **/pom.xml
+      - name: Filter UI
+        id: filter-ui
+        uses: tj-actions/changed-files@v35
+        with:
+          files: |
+            skywalking-ui
+      - name: List all modified files
+        if: steps.filter-oap.outputs.any_modified == 'true' || 
steps.filter-ui.outputs.any_modified == 'true' || 
steps.filter-pom.outputs.any_modified == 'true'
+        run: |
+          echo "All the files that have changed or modified:"
+          echo "OAP: ${{ 
steps.filter-oap.outputs.all_changed_and_modified_files }}"
+          echo "POM: ${{ 
steps.filter-pom.outputs.all_changed_and_modified_files }}"
+          echo "UI: ${{ steps.filter-ui.outputs.all_changed_and_modified_files 
}}"
 
   dist-tar:
     if: |

Reply via email to