diff --git a/.github/workflows/integration_test_result.yml b/.github/workflows/integration_test_result.yml new file mode 100644 index 0000000..64c3dc7 --- /dev/null +++ b/.github/workflows/integration_test_result.yml @@ -0,0 +1,32 @@ +--- + +name: Integration-Test Result + +on: + schedule: + - cron: "25 6 * * *" + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + timeout-minutes: 1 + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} + + - name: Install dependencies + run: sudo apt install curl jq + shell: bash + + - name: Checking job-state + run: > + RESULT="$(curl https://ci.ansibleguy.net/api/job/ansible-test-collection-opnsense/state?token=${{ secrets.CI_TOKEN_RO }} | jq -r '.state')" + if [[ "$RESULT" == "failed" ]] + then + exit 1 + fi + shell: bash