Skip to content

Commit

Permalink
chore: refine release build workflow conditions
Browse files Browse the repository at this point in the history
- Updated the conditions for the build and docker jobs to only run on release events or manual triggers, excluding nightly builds.
- This change enhances the workflow's specificity, ensuring that builds are executed only during relevant events, improving resource management and clarity.
  • Loading branch information
tphakala committed Jan 16, 2025
1 parent 23804d7 commit d9ed373
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:

jobs:
build:
if: ${{ !contains(github.ref, 'nightly') }}
if: ${{ !contains(github.ref, 'nightly') && (github.event_name == 'release' || github.event_name == 'workflow_dispatch') }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand Down Expand Up @@ -93,6 +93,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docker:
if: ${{ !contains(github.ref, 'nightly') && (github.event_name == 'release' || github.event_name == 'workflow_dispatch') }}
runs-on: ubuntu-22.04
needs: build
strategy:
Expand Down

0 comments on commit d9ed373

Please sign in to comment.