Skip to content

Commit

Permalink
Skip job openQA if credentials are not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
josegomezr committed Dec 15, 2023
1 parent 6841025 commit 7aced50
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/openqa.yml
Expand Up @@ -20,9 +20,16 @@ jobs:
container:
image: registry.opensuse.org/devel/openqa/containers/tumbleweed:client
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Trigger and monitor openQA test
run: >
id: openqa_schedule
run: |
if [[ -z "$OPENQA_API_KEY" && -z "$OPENQA_API_SECRET" ]]; then
echo "Skipping OpenQA Schedule step: No API Keys configured."
echo "Configure OPENQA_API_KEY & OPENQA_API_SECRET secrets"
exit 0
fi
openqa-cli schedule \
--monitor \
--host "${OPENQA_HOST:-https://openqa.opensuse.org}/" \
Expand Down

0 comments on commit 7aced50

Please sign in to comment.