Skip to content

Commit 150d093

Browse files
authored
bug: missed triggers still firing (#35)
* bug: missed triggers still firing
1 parent 06f8344 commit 150d093

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,23 +110,23 @@ runs:
110110
111111
# Setup node and cache dir
112112
- uses: actions/setup-node@v3
113-
if: steps.vars.outputs.triggered
113+
if: steps.vars.outputs.triggered == 'true'
114114
with:
115115
node-version: ${{ inputs.node_version }}
116116
- id: npm-cache-dir
117-
if: steps.vars.outputs.triggered
117+
if: steps.vars.outputs.triggered == 'true'
118118
shell: bash
119119
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
120120
- uses: actions/cache@v3
121-
if: steps.vars.outputs.triggered
121+
if: steps.vars.outputs.triggered == 'true'
122122
with:
123123
path: ${{ steps.npm-cache-dir.outputs.dir }}
124124
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
125125
restore-keys: ${{ runner.os }}-node-
126126

127127
# Run tests, hopefully generating coverage for SonarCloud
128128
- name: Run Tests
129-
if: steps.vars.outputs.triggered
129+
if: steps.vars.outputs.triggered == 'true'
130130
shell: bash
131131
run: |
132132
cd ${{ inputs.dir }}
@@ -136,7 +136,7 @@ runs:
136136

137137
# If sonar_token
138138
- name: SonarCloud Scan
139-
if: inputs.sonar_token && steps.vars.outputs.triggered
139+
if: inputs.sonar_token && steps.vars.outputs.triggered == 'true'
140140
uses: SonarSource/sonarcloud-github-action@v2.0.0
141141
env:
142142
SONAR_TOKEN: ${{ inputs.sonar_token }}
@@ -149,13 +149,13 @@ runs:
149149

150150
# Fix - Docker takes ownership of files, causing a cleanup fail
151151
- shell: bash
152-
if: steps.vars.outputs.triggered
152+
if: steps.vars.outputs.triggered == 'true'
153153
id: get_uid
154154
run: |
155155
# User for workstation ownership reset/fix
156156
echo "uid=$(id -u ${USER})" >> $GITHUB_OUTPUT
157157
- uses: peter-murray/reset-workspace-ownership-action@v1
158-
if: steps.vars.outputs.triggered
158+
if: steps.vars.outputs.triggered == 'true'
159159
with:
160160
user_id: ${{ steps.get_uid.outputs.uid }}
161161

0 commit comments

Comments
 (0)