Skip to content

.github/workflows/copr-builds.yml #62

.github/workflows/copr-builds.yml

.github/workflows/copr-builds.yml #62

Workflow file for this run

---
name: Fedora Copr build
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# This always runs against the default branch. Two runs per month.
- cron: '0 0 1,16 * *'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: RPM package
strategy:
matrix:
package:
- mock
- mock-core-configs
steps:
- name: Check out proper version of sources
uses: actions/checkout@v3
- name: Copr build ${{ matrix.package }}
env:
COPR_PR_WEBHOOK: https://copr.fedorainfracloud.org/webhooks/custom-dir/@mock/mock-pull-requests:pr:${{github.event.number}}/9d6af83d-7f27-4091-8161-c1098ff5a6dc/${{ matrix.package }}/
COPR_PUSH_WEBHOOK: ${{ secrets.COPR_PUSH_WEBHOOK }}/${{ matrix.package }}/
run: |
curl https://raw.githubusercontent.com/praiskup/copr-ci-tooling/main/copr-gh-actions-submit > submit
bash submit ${{ github.event.pull_request.number }}