mock: add source URL #1676
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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.pull_request.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 }} |