diff --git a/.github/workflows/deb_package.yml b/.github/workflows/deb_package.yml index b3e93c6..b17efcc 100644 --- a/.github/workflows/deb_package.yml +++ b/.github/workflows/deb_package.yml @@ -4,6 +4,11 @@ on: push: tags: - '[0-9]+.[0-9]+.[0-9]+' + workflow_dispatch: + inputs: + release: + description: 'Release' + required: true jobs: build: @@ -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 \ diff --git a/.github/workflows/rpm_package.yml b/.github/workflows/rpm_package.yml index 13268eb..09ae520 100644 --- a/.github/workflows/rpm_package.yml +++ b/.github/workflows/rpm_package.yml @@ -4,6 +4,11 @@ on: push: tags: - '[0-9]+.[0-9]+.[0-9]+' + workflow_dispatch: + inputs: + release: + description: 'Release' + required: true jobs: build: @@ -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 \