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 6, 2023
1 parent d0857d7 commit 1bda543
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/openqa.yml
Original file line number Diff line number Diff line change
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 [[ "x$OPENQA_API_KEY" == 'x' && "x$OPENQA_API_SECRET" == 'x' ]]; 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 1bda543

Please sign in to comment.