Skip to content

Commit 53b254a

Browse files
committed
Cleanup workflows
1 parent 6b851ea commit 53b254a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
110110
- name: Upload Tests Results
111111
uses: actions/upload-artifact@v3
112-
if: ${{ success() || failure() }}
112+
if: success() || failure()
113113
with:
114114
name: test-results${{ matrix.artifact-suffix }}-${{ runner.os }}-${{ runner.arch }}
115115
path: |
@@ -135,7 +135,7 @@ jobs:
135135
key: ${{ runner.os }}-cache-v${{ secrets.CACHE_VERSION }}
136136

137137
- name: Install cargo tools
138-
if: ${{ steps.cargo-cache.outputs.cache-hit == false }}
138+
if: steps.cargo-cache.outputs.cache-hit == false
139139
shell: bash
140140
run: |
141141
cargo install cargo-sort 2>/dev/null || true # Suppress the "binary `xyz` already exists in destination" error
@@ -207,37 +207,37 @@ jobs:
207207
if-no-files-found: error
208208

209209
publish-tests-results:
210-
if: ${{ success() || failure() }}
210+
if: success() || failure()
211211
runs-on: ubuntu-22.04
212212
needs:
213213
- test
214214
steps:
215215
- name: Download Tests Results (${{ runner.os }}-${{ runner.arch }})
216-
if: ${{ success() || failure() }}
216+
if: success() || failure()
217217
uses: actions/download-artifact@v3
218218
with:
219219
name: test-results-${{ runner.os }}-${{ runner.arch }}
220220

221221
- name: Download mithril-core Tests Results (${{ runner.os }}-${{ runner.arch }})
222-
if: ${{ success() || failure() }}
222+
if: success() || failure()
223223
uses: actions/download-artifact@v3
224224
with:
225225
name: test-results-mithril-core-${{ runner.os }}-${{ runner.arch }}
226226

227227
- name: Download Tests Results (macOS-X64)
228-
if: ${{ success() || failure() }}
228+
if: success() || failure()
229229
uses: actions/download-artifact@v3
230230
with:
231231
name: test-results-macOS-X64
232232

233233
- name: Download Tests Results (Windows-X64)
234-
if: ${{ success() || failure() }}
234+
if: success() || failure()
235235
uses: actions/download-artifact@v3
236236
with:
237237
name: test-results-Windows-X64
238238

239239
- name: Publish Unit Test Results
240-
if: ${{ success() || failure() }}
240+
if: success() || failure()
241241
uses: EnricoMi/publish-unit-test-result-action@v1
242242
with:
243243
files: ./**/test-results-*.xml

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156
157157
- name: Mithril / Publish Github Pages
158158
uses: peaceiris/actions-gh-pages@v3
159-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
159+
if: github.ref == 'refs/heads/main'
160160
with:
161161
github_token: ${{ secrets.GITHUB_TOKEN || github.token }}
162162
publish_dir: ./github-pages

0 commit comments

Comments
 (0)