Skip to content

Commit

Permalink
DONT MERGE: fixup! infra: prompt for manual trigger in case external …
Browse files Browse the repository at this point in the history
…contributors can't run Web UI tests
  • Loading branch information
KKoukiou committed Dec 5, 2024
1 parent 66eebb6 commit e514206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/trigger-webui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
# than the COPR srpm build finishes.
- name: Wait for packit COPR build
run: |
exit 0
set -ex
PUSH_TIME=$(date --utc +%Y%m%d%H%M%S -d '${{ github.event.pull_request.head.repo.pushed_at }}')
COPR_NAME="${{ github.event.pull_request.base.user.login }}-${{ github.event.pull_request.base.repo.name }}-${{ github.event.number }}"
Expand All @@ -73,7 +74,7 @@ jobs:
mkdir -p ~/.config/cockpit-dev
echo '${{ secrets.GITHUB_TOKEN }}' > ~/.config/cockpit-dev/github-token
cmd_output=$(bots/tests-trigger --repo ${{ github.repository }} ${{ github.event.number }} fedora-rawhide-boot/anaconda-pr-${{ github.event.number }}@rhinstaller/anaconda-webui 2>&1)
if echo "$cmd_output" | grep -q 'Override with --allow'; then
if echo "$cmd_output" | grep -qv 'Override with --allow'; then
sha="${{ needs.pr-info.outputs.sha }}"
url="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/trigger-webui.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
# than the COPR srpm build finishes.
- name: Wait for packit COPR build
run: |
exit 0
set -ex
PUSH_TIME=$(date --utc +%Y%m%d%H%M%S -d '${{ github.event.pull_request.head.repo.pushed_at }}')
COPR_NAME="${{ github.event.pull_request.base.user.login }}-${{ github.event.pull_request.base.repo.name }}-${{ github.event.number }}"
Expand All @@ -67,7 +68,7 @@ jobs:
mkdir -p ~/.config/cockpit-dev
echo '${{ secrets.GITHUB_TOKEN }}' > ~/.config/cockpit-dev/github-token
cmd_output=$(bots/tests-trigger --repo ${{ github.repository }} ${{ github.event.number }} fedora-rawhide-boot/anaconda-pr-${{ github.event.number }}@rhinstaller/anaconda-webui 2>&1)
if echo "$cmd_output" | grep -q 'Override with --allow'; then
if echo "$cmd_output" | grep -qv 'Override with --allow'; then
sha="${{ needs.pr-info.outputs.sha }}"
url="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts"

Expand Down

0 comments on commit e514206

Please sign in to comment.