Hit*_*nds 8 continuous-integration github devops github-actions
我有这样的情况:
jobs:
shake:
name: 'NodeJS ${{ matrix.node }}'
runs-on: ubuntu-latest
strategy:
matrix:
fruit: [strawberry, banana, apple]
steps:
- run: echo "::set-output name=action_fruit::${{ matrix.fruit }}"
Run Code Online (Sandbox Code Playgroud)
我很乐意在整个矩阵结束后执行 ajob或。step
看来你可以通过使用if: always()你的依赖工作来达到你想要的结果。更多信息可在此处获取:https://github.community/t/run-dependent-job-even-on-failure/115914
jobs:
shake:
...
post_shake:
if: ${{ always() }}
needs: [shake]
steps:
...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2384 次 |
| 最近记录: |