Skip to content

Commit

Permalink
Setting Workflow name and Release Condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
kavitshah-gl committed Jan 14, 2023
1 parent f62af77 commit f8f81b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Surf

on:
push:
branches:
Expand Down Expand Up @@ -27,10 +29,9 @@ env:
GIT_PASSWORD: ${{ secrets.BOT_GITHUB_TOKEN }}
BRANCH_NAME: ${{ github.ref_name }}


jobs:
Source_Clear_Scan:
if: ${{ startsWith(github.ref_name, 'support/') && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[no_release]') && github.event.repository.fork==false }}
if: ${{ startsWith(github.ref_name, 'support/') && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[no_release]') && github.event.repository.fork==false && !contains(inputs.commitMessage, '[no_release]')}}
runs-on: ubuntu-latest
needs: Build_and_test
steps:
Expand Down Expand Up @@ -95,7 +96,7 @@ jobs:
mvn test
Release:
if: ${{ startsWith(github.ref_name, 'support/') && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[no_release]') && github.event.repository.fork==false }}
if: ${{ startsWith(github.ref_name, 'support/') && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[no_release]') && github.event.repository.fork==false && !contains(inputs.commitMessage, '[no_release]')}}
runs-on: ubuntu-latest
needs: Source_Clear_Scan
steps:
Expand Down

0 comments on commit f8f81b4

Please sign in to comment.