diff --git a/.github/workflows/test-packit.yml b/.github/workflows/test-packit.yml index ae005fd557..8c79027f7c 100644 --- a/.github/workflows/test-packit.yml +++ b/.github/workflows/test-packit.yml @@ -1,15 +1,26 @@ 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: fedora:latest steps: + - name: install wait-for-copr + run: pip install -e git://github.com/packit/wait-for-copr.git@0.0.1#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 }} + run: | + echo $(git rev-parse --short HEAD) + wait-for-copr --owner packit --project $REPO-$PR-$PROJ $PROJ $(git rev-parse --short HEAD) + - name: print success run: echo "success"