Integration-Test Result #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |