Skip to content

Commit

Permalink
pkg/ci: Support manually-dispatched packaging jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
igorauad committed Dec 7, 2023
1 parent c53e336 commit 6d9b961
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/deb_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
inputs:
release:
description: 'Release'
required: true

jobs:
build:
Expand All @@ -18,7 +23,7 @@ jobs:
- name: Workaround for unsafe repo git error
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Check CMakeLists version matches tag
run: .packaging/scripts/check-version-tag.sh $GITHUB_REF_NAME
run: .packaging/scripts/check-version-tag.sh ${{ github.event.inputs.release || github.ref_name }}
- name: Install debian build dependencies
run: |
apt update && apt install -y \
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/rpm_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
inputs:
release:
description: 'Release'
required: true

jobs:
build:
Expand All @@ -23,8 +28,8 @@ jobs:
fetch-depth: 0
- name: Workaround for unsafe repo git error
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Check CMakeLists version matches tag
run: .packaging/scripts/check-version-tag.sh $GITHUB_REF_NAME
- name: Check CMakeLists version matches target release
run: .packaging/scripts/check-version-tag.sh ${{ github.event.inputs.release || github.ref_name }}
- name: Install rpmbuild dependencies
run: |
dnf install -y \
Expand Down

0 comments on commit 6d9b961

Please sign in to comment.