@@ -110,23 +110,23 @@ runs:
110
110
111
111
# Setup node and cache dir
112
112
- uses : actions/setup-node@v3
113
- if : steps.vars.outputs.triggered
113
+ if : steps.vars.outputs.triggered == 'true'
114
114
with :
115
115
node-version : ${{ inputs.node_version }}
116
116
- id : npm-cache-dir
117
- if : steps.vars.outputs.triggered
117
+ if : steps.vars.outputs.triggered == 'true'
118
118
shell : bash
119
119
run : echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
120
120
- uses : actions/cache@v3
121
- if : steps.vars.outputs.triggered
121
+ if : steps.vars.outputs.triggered == 'true'
122
122
with :
123
123
path : ${{ steps.npm-cache-dir.outputs.dir }}
124
124
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
125
125
restore-keys : ${{ runner.os }}-node-
126
126
127
127
# Run tests, hopefully generating coverage for SonarCloud
128
128
- name : Run Tests
129
- if : steps.vars.outputs.triggered
129
+ if : steps.vars.outputs.triggered == 'true'
130
130
shell : bash
131
131
run : |
132
132
cd ${{ inputs.dir }}
@@ -136,7 +136,7 @@ runs:
136
136
137
137
# If sonar_token
138
138
- name : SonarCloud Scan
139
- if : inputs.sonar_token && steps.vars.outputs.triggered
139
+ if : inputs.sonar_token && steps.vars.outputs.triggered == 'true'
140
140
uses : SonarSource/sonarcloud-github-action@v2.0.0
141
141
env :
142
142
SONAR_TOKEN : ${{ inputs.sonar_token }}
@@ -149,13 +149,13 @@ runs:
149
149
150
150
# Fix - Docker takes ownership of files, causing a cleanup fail
151
151
- shell : bash
152
- if : steps.vars.outputs.triggered
152
+ if : steps.vars.outputs.triggered == 'true'
153
153
id : get_uid
154
154
run : |
155
155
# User for workstation ownership reset/fix
156
156
echo "uid=$(id -u ${USER})" >> $GITHUB_OUTPUT
157
157
- uses : peter-murray/reset-workspace-ownership-action@v1
158
- if : steps.vars.outputs.triggered
158
+ if : steps.vars.outputs.triggered == 'true'
159
159
with :
160
160
user_id : ${{ steps.get_uid.outputs.uid }}
161
161
0 commit comments