Skip to content

Commit

Permalink
added workflow_dispatch to repo build/publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulchen-Panther committed Nov 18, 2023
1 parent fd70014 commit 6cdaa4f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/releases_repo_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name: Tag/Version Builds
on:
repository_dispatch:
types: [ releases_repo_build ]
workflow_dispatch:
inputs:
head_sha:
type: string
default: master
description: The branch, tag or SHA to checkout
required: false

jobs:
# Build DEB Packages for APT Repository
Expand All @@ -11,7 +18,7 @@ jobs:
uses: ./.github/workflows/build_deb.yml
secrets: inherit
with:
head_sha: ${{ github.event.client_payload.head_sha }}
head_sha: ${{ github.event.client_payload.head_sha || inputs.head_sha }}
upload: true

# Build RPM Packages for DNF Repository
Expand All @@ -20,7 +27,7 @@ jobs:
uses: ./.github/workflows/build_rpm.yml
secrets: inherit
with:
head_sha: ${{ github.event.client_payload.head_sha }}
head_sha: ${{ github.event.client_payload.head_sha || inputs.head_sha }}
upload: true

# Publish RPM Packages to DNF Repository
Expand Down

0 comments on commit 6cdaa4f

Please sign in to comment.