Skip to content

Commit bb391ab

Browse files
committed
ci(workflows): [ci] refactor metadata job conditional
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 4722656 commit bb391ab

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,9 @@ concurrency:
4343
jobs:
4444
metadata:
4545
if: |
46-
github.event_name == 'pull_request'
47-
|| github.event_name == 'workflow_dispatch'
48-
|| github.event.head_commit.author.name != 'dependabot[bot]'
49-
|| github.event.head_commit.author.name != 'flexdevelopment'
50-
|| !startsWith(github.event.head_commit.message, 'release:')
46+
github.event.head_commit.author.name != 'dependabot[bot]'
47+
&& github.event.head_commit.author.username != 'flexdevelopment'
48+
&& !startsWith(github.event.head_commit.message, 'release:')
5149
runs-on: ubuntu-latest
5250
outputs:
5351
version: ${{ steps.version.outputs.result }}

0 commit comments

Comments
 (0)