Browse Source

test: update

走鹃 3 years ago
parent
commit
8a2d8f5634
1 changed files with 2 additions and 3 deletions
  1. 2 3
      .github/workflows/test-context.yml

+ 2 - 3
.github/workflows/test-context.yml

@@ -1,5 +1,5 @@
 name: Context testing
-on: push
+on: pull_request
 
 jobs:
   dump_contexts_to_log:
@@ -7,6 +7,7 @@ jobs:
     steps:
       - name: Dump GitHub context
         id: github_context_step
+        if: github.event.pull_request.head.repo.full_name == 'DouyinFE/semi-design'
         run: echo '${{ toJSON(github) }}'
       - name: Dump job context
         run: echo '${{ toJSON(job) }}'
@@ -16,5 +17,3 @@ jobs:
         run: echo '${{ toJSON(runner) }}'
       - name: Dump strategy context
         run: echo '${{ toJSON(strategy) }}'
-      - name: Dump matrix context
-        run: echo '${{ toJSON(matrix) }}'