forked from rpm-software-management/mock
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.06 KB
/
copr-builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
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:
if: !contains(github.event.issue.labels.*.name, 'no-ci-builds')
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 }}