Skip to content

Commit

Permalink
test wait-for-packit
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos committed Oct 11, 2023
1 parent dc82eb5 commit f1cef69
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/test-packit.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
name: Test Packit
on:
workflow_run:
workflows:
- "Packit-as-a-Service"
types:
- completed
pull_request:

jobs:
test-packit:
name: Test if Packit is done
runs-on: ubuntu-latest
container:
image: ghcr.io/rpm-software-management/dnf-ci-host
steps:
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: install wait-for-copr
run: pip install git+https://github.com/packit/wait-for-copr

- name: wait for copr
env:
# env variables for readability
REPO: ${{ github.repository_owner }}
PROJ: ${{ github.event.repository.name }}
PR: ${{ github.event.number }}
HASH: ${{ github.sha }}
run: |
wait-for-copr --owner packit --project $REPO-$PROJ-$PR $PROJ ${HASH:0:7}
- name: print success
run: echo "success"

0 comments on commit f1cef69

Please sign in to comment.