mirror of
https://github.com/unraid/api.git
synced 2026-01-06 16:49:49 -06:00
chore: move if to single line
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -9,12 +9,8 @@ on:
|
||||
|
||||
jobs:
|
||||
start:
|
||||
if: |
|
||||
# This prevents a tag running twice as it'll have a "tag" and a "commit" event
|
||||
# Normal commit
|
||||
(github.event.base_ref === "refs/heads/$default-branch" && !startsWith(github.event.head_commit.message, 'chore(release)')) ||
|
||||
# Release tag
|
||||
(startsWith(github.event.base_ref, 'refs/tags/') && startsWith(github.event.head_commit.message, 'chore(release)'))
|
||||
# This prevents a tag running twice as it'll have a "tag" and a "commit" event
|
||||
if: (github.event.base_ref === "refs/heads/$default-branch" && !startsWith(github.event.head_commit.message, 'chore(release)')) || (startsWith(github.event.base_ref, 'refs/tags/') && startsWith(github.event.head_commit.message, 'chore(release)'))
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Validate branch and tag
|
||||
|
||||
Reference in New Issue
Block a user