name: Trigger COPR Build on: # Trigger on push, but only for SPECS and SOURCES changes push: paths: - fedora-*/SPECS/*.spec - fedora-*/SOURCES/** - centos-*/SPECS/*.spec - centos-*/SOURCES/** # Enables manual triggering of the workflow workflow_dispatch: jobs: build-copr: runs-on: ubuntu-latest # Defines the Fedora container for this job container: image: fedora:latest steps: # 1. Install pre-requisites - name: Install copr-cli run: dnf install -y copr-cli git git-lfs # 2. Checkout the repository - name: Checkout repository uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} lfs: true # 3. Run the build script - name: Run COPR build script run: ./build.sh # Inject secrets into the container as environment variables env: COPR_CONFIG: ${{ secrets.COPR_CONFIG }}