mirror of
https://github.com/t2linux/fedora.git
synced 2026-04-30 13:51:42 -07:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: COPR Webhook
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- "kernel/*"
|
|
- "t2linux-config/*"
|
|
- "t2linux-audio/*"
|
|
- "t2linux-repos/*"
|
|
- "rust-arraydeque/*"
|
|
- "rust-nonempty/*"
|
|
- "rust-rust-ini0.20/*"
|
|
- "t2fanrd/*"
|
|
- "t2linux-scripts/*"
|
|
- "t2linux-release/*"
|
|
|
|
jobs:
|
|
copr-webhook:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@v44
|
|
with:
|
|
since_last_remote_commit: true
|
|
dir_names: "true"
|
|
|
|
- name: "Trigger COPR webhook"
|
|
run: |
|
|
CHANGED_PACKAGES=( $(for c in ${CHANGES[@]}; do cut -d/ -f1<<<$c; done | sort -u) )
|
|
for package in "${CHANGED_PACKAGES[@]}"; do
|
|
echo "Running COPR webhook for: $package"
|
|
curl -sS -X POST $COPR_WEBHOOK/$package
|
|
done
|
|
env:
|
|
COPR_WEBHOOK: ${{ secrets.COPR_WEBHOOK }}
|
|
CHANGES: ${{ steps.changed-files.outputs.all_changed_files }}
|