Skip to content

Commit 0562e80

Browse files
committed
a
Signed-off-by: DBT pre-commit check
1 parent d2d981c commit 0562e80

2 files changed

Lines changed: 28 additions & 8 deletions

File tree

.github/workflows/language.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ jobs:
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

.github/workflows/test-trigger-python.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
name: Python rules trigger
2+
13
on:
24
workflow_call:
5+
workflow_dispatch:
36

47
jobs:
58
python-job:

0 commit comments

Comments
 (0)