From a81a02d3c98c4db499223efe9a37e6bbdae5633a Mon Sep 17 00:00:00 2001 From: Minttu Hurme Date: Wed, 10 Jan 2024 15:51:37 +0200 Subject: [PATCH] Add test webhooks --- .github/workflows/melinda-node-tests.yml | 40 +++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/.github/workflows/melinda-node-tests.yml b/.github/workflows/melinda-node-tests.yml index 22beee7..7cb341d 100644 --- a/.github/workflows/melinda-node-tests.yml +++ b/.github/workflows/melinda-node-tests.yml @@ -83,4 +83,42 @@ jobs: with: context: . push: true - tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file + tags: ${{ steps.meta.outputs.tags }} + + openshift-webhook: + name: OpenShift webhook for image builder + needs: [build-node-versions, njsscan] + runs-on: ubuntu-latest + + steps: + - name: Test aut aux webhook + uses: joelwmale/webhook-action@master + if: github.ref == 'refs/heads/test' + with: + url: ${{ secrets.WEBHOOK_URL_AUT_AUX_TEST_FROM_TEST }} + body: '{}' + - name: Test aut names webhook + uses: joelwmale/webhook-action@master + if: github.ref == 'refs/heads/test' + with: + url: ${{ secrets.WEBHOOK_URL_AUT_NAMES_TEST_FROM_TEST }} + body: '{}' + - name: Test aut subjects webhook + uses: joelwmale/webhook-action@master + if: github.ref == 'refs/heads/test' + with: + url: ${{ secrets.WEBHOOK_URL_AUT_SUBJECTS_TEST_FROM_TEST }} + body: '{}' + - name: Test aut works webhook + uses: joelwmale/webhook-action@master + if: github.ref == 'refs/heads/test' + with: + url: ${{ secrets.WEBHOOK_URL_AUT_WORKS_TEST_FROM_TEST }} + body: '{}' + - name: Test bib webhook + uses: joelwmale/webhook-action@master + if: github.ref == 'refs/heads/test' + with: + url: ${{ secrets.WEBHOOK_URL_BIB_TEST_FROM_TEST }} + body: '{}' +