2025-01-13 04:24:05 +00:00
|
|
|
name: Trigger COPR build
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
secrets:
|
2025-01-16 21:51:18 +00:00
|
|
|
COPR_API_CONFIG:
|
2025-01-13 04:24:05 +00:00
|
|
|
inputs:
|
|
|
|
copr_project:
|
|
|
|
description: COPR project to target
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
2025-01-13 05:20:22 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
packages: write
|
2025-01-13 04:24:05 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-copr-hook:
|
|
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
ref: ${{ github.ref }}
|
|
|
|
repository: ${{ github.repository }}
|
|
|
|
|
|
|
|
- name: Trigger COPR build
|
2025-01-17 02:21:52 +00:00
|
|
|
uses: vidplace7/copr-build@main
|
2025-01-16 21:51:18 +00:00
|
|
|
id: copr_build
|
|
|
|
env:
|
|
|
|
COPR_API_TOKEN_CONFIG: ${{ secrets.COPR_API_CONFIG }}
|
|
|
|
with:
|
2025-01-17 04:27:49 +00:00
|
|
|
owner: "@meshtastic"
|
2025-01-16 21:51:18 +00:00
|
|
|
package-name: meshtasticd
|
|
|
|
project-name: ${{ inputs.copr_project }}
|
|
|
|
git-remote: "${{ github.server_url }}/${{ github.repository }}.git"
|
|
|
|
committish: ${{ github.sha }}
|