File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -155,13 +155,24 @@ jobs:
155
155
156
156
test-publish-to-psgallery :
157
157
runs-on : ubuntu-latest
158
+ container :
159
+ image : theohbrothers/docker-powershell:7.4-ubuntu-22.04-git
158
160
steps :
159
161
- uses : actions/checkout@v1
160
162
with :
161
163
submodules : true
164
+ - name : Install wget
165
+ run : |
166
+ apt-get update && apt-get install -y wget
167
+ - uses : actions/setup-dotnet@v4
168
+ with :
169
+ dotnet-version : ' 6'
162
170
- name : Powershell version
163
171
run : |
164
172
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
173
+ - name : Ignore git permissions
174
+ run : |
175
+ git config --global --add safe.directory "$( pwd )"
165
176
- name : Publish (dry run)
166
177
shell : pwsh
167
178
env :
@@ -187,13 +198,24 @@ jobs:
187
198
- test-publish-to-psgallery
188
199
if : startsWith(github.ref, 'refs/tags/')
189
200
runs-on : ubuntu-latest
201
+ container :
202
+ image : theohbrothers/docker-powershell:7.4-ubuntu-22.04-git
190
203
steps :
191
204
- uses : actions/checkout@v1
192
205
with :
193
206
submodules : true
207
+ - name : Install wget
208
+ run : |
209
+ apt-get update && apt-get install -y wget
210
+ - uses : actions/setup-dotnet@v4
211
+ with :
212
+ dotnet-version : ' 6'
194
213
- name : Powershell version
195
214
run : |
196
215
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
216
+ - name : Ignore git permissions
217
+ run : |
218
+ git config --global --add safe.directory "$( pwd )"
197
219
- name : Publish
198
220
shell : pwsh
199
221
env :
You can’t perform that action at this time.
0 commit comments