Skip to content

File Change Webhook #651

File Change Webhook

File Change Webhook #651

Workflow file for this run

###
# This GitHub Actions runs when there is a push to master/main branch and a new change in the `specs/` folder.
# It will send a webhook to COPR when the WEBHOOK URL actions secret has been set in Settings.
# The WEBHOOK_URL is found under the `Custom webhook(s)` sections on https://copr.fedorainfracloud.org/coprs/<username>/<repo>/integrations/
###
name: File Change Webhook
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "specs/*"
- ".github/workflows/*"
workflow_run:
workflows: [Update spec files]
types:
- completed
permissions:
# Needs to write to this repo
contents: write
pull-requests: write
jobs:
notify:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
with:
fetch-depth: 3
ref: main
- name: Get changes and send webhook to COPR
shell: bash
env:
WEBHOOK: ${{ secrets.WEBHOOK_URL }}
run: ./scripts/copr_webhook.sh "$WEBHOOK" "${{ github.sha }}"