Skip to content

Commit

Permalink
github: remove unneeded ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gandem committed Oct 24, 2024
1 parent 02aed30 commit 8ab96e0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
branches: ["**"]
workflow_call:

Expand All @@ -13,11 +12,10 @@ permissions:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.event.action != 'labeled' || github.event.label.name == 'publish-dev-test' }}
cancel-in-progress: true

jobs:
versions:
if: ${{ github.event_name != 'pull_request' || github.event.action != 'labeled' || github.event.label.name == 'publish-dev-test' }}
name: Determine versions
runs-on: ubuntu-24.04
env:
Expand All @@ -36,7 +34,6 @@ jobs:
run: echo "version=${RELEASE_VERSION}-${GITHUB_SHA::7}.${{ github.run_id }}" >> "${GITHUB_OUTPUT}"

build:
if: ${{ github.event_name != 'pull_request' || github.event.action != 'labeled' || github.event.label.name == 'publish-dev-test' }}
name: Build
needs: [versions]
uses: ./.github/workflows/build.yml
Expand Down

0 comments on commit 8ab96e0

Please sign in to comment.