Skip to content

Commit

Permalink
ci-fix: use correct or in if expression
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleoutIce committed Sep 15, 2023
1 parent 544748e commit 2b2f395
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ name: "Release"
jobs:
release:
runs-on: ubuntu-latest
if: startsWith(github.event.head_commit.message, '[release:minor]') |
startsWith(github.event.head_commit.message, '[release:major]') |
if: startsWith(github.event.head_commit.message, '[release:minor]') ||
startsWith(github.event.head_commit.message, '[release:major]') ||
startsWith(github.event.head_commit.message, '[release:patch]')
steps:
- uses: actions/checkout@v4
Expand All @@ -25,13 +25,13 @@ jobs:
- run: |
msg="${{ github.event.head_commit.message }}"
step=$(echo "$msg" | sed -n 's/\[release:\(patch|minor|major\)].*/\1/p')
npm run release -- $step
npm run release -- $step
deploy-docker:
needs: [ release ]
name: "Deploy Docker (only on main)"
if: startsWith(github.event.head_commit.message, '[release:minor]') |
startsWith(github.event.head_commit.message, '[release:major]') |
if: startsWith(github.event.head_commit.message, '[release:minor]') ||
startsWith(github.event.head_commit.message, '[release:major]') ||
startsWith(github.event.head_commit.message, '[release:patch]')
uses: Code-Inspect/flowr/.github/workflows/deploy-docker.yaml@main
secrets: inherit

0 comments on commit 2b2f395

Please sign in to comment.