Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

feat: upload npm logs as artifact on failure #934

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/provisioning-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ jobs:
Devstack provisioning tests in ${{github.repository}} for ${{matrix.services}} failed! For details see <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}>.
Runbook url: https://2u-internal.atlassian.net/wiki/spaces/AT/pages/16384920/Failure+Devstack+provisioning+tests+-+Runbook

- name: upload logs as artifact on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: npm-install-log
path: test_root/log/npm-install.log
retention-days: 5

- name: close alerts on success
if: ${{ !failure() && github.ref == 'refs/heads/master' }}
uses: dawidd6/action-send-mail@v3
Expand Down