Skip to content

Commit

Permalink
Added force option to nighty workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulchen-Panther authored Oct 1, 2024
1 parent 29b9389 commit abaeb3e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
forceRun:
type: boolean
description: Force build and publish nightly packages
default: false
required: false

jobs:

Expand Down Expand Up @@ -45,7 +50,7 @@ jobs:
# Build DEB Packages for APT Repository
deb_build:
name: 👷 Build DEB Packages
if: ${{ needs.check.outputs.build-apt-nightly == 'true' }}
if: ${{ needs.check.outputs.build-apt-nightly == 'true' || inputs.forceRun }}
needs: [check]
uses: ./.github/workflows/build_deb.yml
secrets: inherit
Expand All @@ -57,7 +62,7 @@ jobs:
# Build RPM Packages for DNF Repository
rpm_build:
name: 👷 Build RPM Packages
if: ${{ needs.check.outputs.build-dnf-nightly == 'true' }}
if: ${{ needs.check.outputs.build-dnf-nightly == 'true' || inputs.forceRun }}
needs: [check]
uses: ./.github/workflows/build_rpm.yml
secrets: inherit
Expand All @@ -69,7 +74,7 @@ jobs:
# Publish RPM Packages to DNF Repository
publish_packages:
name: 🚀 Publish Packages
if: ${{ needs.check.outputs.build-apt-nightly == 'true' || needs.check.outputs.build-dnf-nightly == 'true' }}
if: ${{ needs.check.outputs.build-apt-nightly == 'true' || needs.check.outputs.build-dnf-nightly == 'true' || inputs.forceRun }}
needs: [ check, deb_build, rpm_build ]
uses: ./.github/workflows/publish_deb_rpm.yml
secrets: inherit
Expand Down

0 comments on commit abaeb3e

Please sign in to comment.