Skip to content

Commit

Permalink
stash qg state on run
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
  • Loading branch information
wagoodman committed Oct 26, 2023
1 parent 3e92103 commit e3cd662
Showing 2 changed files with 19 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .github/actions/quality-gate/action.yaml
Original file line number Diff line number Diff line change
@@ -15,6 +15,16 @@ runs:
working-directory: tests/quality
run: poetry run make capture provider=${{ inputs.provider }}

- name: Archive the provider state (${{ inputs.provider }})
shell: bash
run: tar -czvf qg-capture-state-${{ inputs.provider }}.tar.gz -C tests/quality --exclude tools --exclude labels .yardstick

- name: Upload the provider state archive (${{ inputs.provider }})
uses: actions/upload-artifact@v3
with:
name: qg-capture-state-${{ inputs.provider }}
path: qg-capture-state-${{ inputs.provider }}.tar.gz

- name: Validate provider results
shell: bash
working-directory: tests/quality
17 changes: 9 additions & 8 deletions .github/workflows/nightly-quality-gate.yaml
Original file line number Diff line number Diff line change
@@ -79,11 +79,12 @@ jobs:
fi
echo "🟢 Quality gate passed!"
- uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #v3.15.1
if: ${{ failure() }}
with:
status: ${{ job.status }}
fields: repo,workflow,action,eventName
text: "Vunnel nightly quality gate has failed: https://github.com/anchore/vunnel/actions/workflows/nightly-quality-gate.yaml"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }}
# TODO: put me back in the ring, boss!
# - uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #v3.15.1
# if: ${{ failure() }}
# with:
# status: ${{ job.status }}
# fields: repo,workflow,action,eventName
# text: "Vunnel nightly quality gate has failed: https://github.com/anchore/vunnel/actions/workflows/nightly-quality-gate.yaml"
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }}

0 comments on commit e3cd662

Please sign in to comment.