1313 id : set-languages-result
1414 with :
1515 script : |
16- return ['Python', 'Dockerfile']
17- const { data } = await github.rest.repos.listLanguages({
16+ let repo = await github.rest.actions.listRepoWorkflows({
17+ owner: context.repo.owner,
18+ repo: context.repo.repo,
19+ });
20+ console.log(repo.data)
21+ return ['Python']
22+ let { data } = await github.rest.repos.listLanguages({
1823 owner: context.repo.owner,
1924 repo: context.repo.repo,
2025 });
@@ -34,10 +39,22 @@ jobs:
3439 - name : Checkout current repo
3540 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
3641
37- - name : Run scan for ${{matrix.language}}
38- if : matrix.language == 'Python'
39- uses : ./.github/actions/scans/python
42+ - uses : actions/github-script@v8
43+ id : trigger-python-manually
44+ with :
45+ script : |
46+
47+ await github.rest.actions.createWorkflowDispatch({
48+ owner: context.repo.owner,
49+ repo: context.repo.repo,
50+ workflow_id: 'test-trigger-python.yml',
51+ ref: context.ref
52+ });
53+
54+ # - name: Run scan for ${{matrix.language}}
55+ # if: matrix.language == 'Python'
56+ # uses: ./.github/actions/scans/python
4057
41- - name : Run scan for ${{matrix.language}}
42- if : matrix.language == 'Dockerfile'
43- uses : ./.github/actions/scans/docker
58+ # - name: Run scan for ${{matrix.language}}
59+ # if: matrix.language == 'Dockerfile'
60+ # uses: ./.github/actions/scans/docker
0 commit comments