Skip to content

Commit

Permalink
Merge pull request mercedes-benz#3435 from mercedes-benz/gha_feature-…
Browse files Browse the repository at this point in the history
…3357-fix-wrong-if-condition-in-pipeline

fix if statement in github-action-scan.yml & gradle.yml
  • Loading branch information
sven-dmlr authored Sep 19, 2024
2 parents 633b312 + c1c4a22 commit d35616d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github-action-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
build-scan:
# This job is only executed if the branch name starts with 'gha_feature-' or 'dependabot/'
# or equals 'main', 'master', 'develop' 'hotfix'
if: "startsWith(github.head_ref, 'gha_feature-') || startsWith(github.head_ref, 'dependabot/') ||
github.head_ref == 'main' || github.head_ref == 'master' || github.head_ref == 'develop' || github.head_ref == 'hotfix'"
if: ${{ startsWith(github.head_ref, 'gha_feature-') || startsWith(github.head_ref, 'dependabot/') ||
github.head_ref == 'main' || github.head_ref == 'master' || github.head_ref == 'develop' || github.head_ref == 'hotfix' }}
runs-on: ubuntu-latest
# Let's set the scan action folder as the working directory for all "run" steps:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
build:
# This job is only executed if the branch name starts with 'feature-' or 'dependabot/'
# or equals 'main', 'master', 'develop' 'hotfix'
if: "startsWith(github.head_ref, 'feature-') || startsWith(github.head_ref, 'dependabot/') ||
github.head_ref == 'main' || github.head_ref == 'master' || github.head_ref == 'develop' || github.head_ref == 'hotfix'"
if: ${{ startsWith(github.head_ref, 'feature-') || startsWith(github.head_ref, 'dependabot/') ||
github.head_ref == 'main' || github.head_ref == 'master' || github.head_ref == 'develop' || github.head_ref == 'hotfix' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
Expand Down

0 comments on commit d35616d

Please sign in to comment.