Skip to content

Commit c3a9629

Browse files
Merge pull request #1 from tidalmigrations/jb/debug
Add support for debug flag
2 parents 3df754a + af986e7 commit c3a9629

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ jobs:
99
# you must check out the repository
1010
- name: Checkout
1111
uses: actions/checkout@v4
12-
- name: Tidal Doctor action step
12+
- name: Tidal Doctor action step without debug
13+
uses: ./doctor
14+
with:
15+
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
16+
tidal-url: '${{ secrets.TIDAL_URL }}'
17+
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
18+
- name: Tidal Doctor action step with debug
1319
uses: ./doctor
1420
with:
1521
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
@@ -37,10 +43,18 @@ jobs:
3743
# you must check out the repository
3844
- name: Checkout
3945
uses: actions/checkout@v4
40-
- name: Tidal Code Analyze action step
46+
- name: Tidal Code Analyze action step with debug
4147
uses: ./ # Uses an action in the root directory
4248
with:
4349
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
4450
tidal-url: '${{ secrets.TIDAL_URL }}'
4551
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
4652
app-id: '66'
53+
debug: true
54+
- name: Tidal Code Analyze action step without debug
55+
uses: ./ # Uses an action in the root directory
56+
with:
57+
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
58+
tidal-url: '${{ secrets.TIDAL_URL }}'
59+
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
60+
app-id: '66'

action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ inputs:
1414
description: 'The ID of the application that is linked to this repository'
1515
required: true
1616
directory:
17-
description: 'The directory for tidal-tools to run code analysis on'
18-
required: true
19-
default: '${{ github.workspace }}'
17+
description: 'The directory for tidal-tools to run code analysis on'
18+
required: true
19+
default: '${{ github.workspace }}'
20+
debug:
21+
description: 'Set the debug flag to true to enable increased logging'
22+
required: false
2023
runs:
2124
using: 'docker'
2225
image: 'docker://gcr.io/tidal-1529434400027/tidal-tools:latest'
@@ -32,3 +35,4 @@ runs:
3235
- --app-id
3336
- '${{ inputs.app-id }}'
3437
- '${{ inputs.directory }}'
38+
- ${{ inputs.debug == 'true' && '--debug' || '' }}

doctor/action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ runs:
1616
args:
1717
- 'doctor'
1818
- '--tidal-email'
19-
- '${{inputs.tidal-email}}'
19+
- '${{ inputs.tidal-email }}'
2020
- '--tidal-password'
21-
- '${{inputs.tidal-password}}'
21+
- '${{ inputs.tidal-password }}'
2222
- '--tidal-url'
23-
- '${{inputs.tidal-url}}'
24-
23+
- '${{ inputs.tidal-url }}'

0 commit comments

Comments
 (0)