Skip to content

ci: allow us to skip builds with "no-ci-builds" label #72

ci: allow us to skip builds with "no-ci-builds" label

ci: allow us to skip builds with "no-ci-builds" label #72

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:

Check failure on line 17 in .github/workflows/copr-builds.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/copr-builds.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
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 }}