Skip to content

Commit

Permalink
Try using booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbarclay committed Oct 31, 2023
1 parent 3df754a commit af986e7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ jobs:
# you must check out the repository
- name: Checkout
uses: actions/checkout@v4
- name: Tidal Doctor action step
- name: Tidal Doctor action step without debug
uses: ./doctor
with:
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
tidal-url: '${{ secrets.TIDAL_URL }}'
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
- name: Tidal Doctor action step with debug
uses: ./doctor
with:
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
Expand Down Expand Up @@ -37,10 +43,18 @@ jobs:
# you must check out the repository
- name: Checkout
uses: actions/checkout@v4
- name: Tidal Code Analyze action step
- name: Tidal Code Analyze action step with debug
uses: ./ # Uses an action in the root directory
with:
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
tidal-url: '${{ secrets.TIDAL_URL }}'
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
app-id: '66'
debug: true
- name: Tidal Code Analyze action step without debug
uses: ./ # Uses an action in the root directory
with:
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
tidal-url: '${{ secrets.TIDAL_URL }}'
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
app-id: '66'
10 changes: 7 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ inputs:
description: 'The ID of the application that is linked to this repository'
required: true
directory:
description: 'The directory for tidal-tools to run code analysis on'
required: true
default: '${{ github.workspace }}'
description: 'The directory for tidal-tools to run code analysis on'
required: true
default: '${{ github.workspace }}'
debug:
description: 'Set the debug flag to true to enable increased logging'
required: false
runs:
using: 'docker'
image: 'docker://gcr.io/tidal-1529434400027/tidal-tools:latest'
Expand All @@ -32,3 +35,4 @@ runs:
- --app-id
- '${{ inputs.app-id }}'
- '${{ inputs.directory }}'
- ${{ inputs.debug == 'true' && '--debug' || '' }}
7 changes: 3 additions & 4 deletions doctor/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ runs:
args:
- 'doctor'
- '--tidal-email'
- '${{inputs.tidal-email}}'
- '${{ inputs.tidal-email }}'
- '--tidal-password'
- '${{inputs.tidal-password}}'
- '${{ inputs.tidal-password }}'
- '--tidal-url'
- '${{inputs.tidal-url}}'

- '${{ inputs.tidal-url }}'

0 comments on commit af986e7

Please sign in to comment.