Skip to content

Commit

Permalink
Ci added for devmain branch (flyteorg#428)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuvraj <[email protected]>

Co-authored-by: Yuvraj <[email protected]>
  • Loading branch information
yindia and Yuvraj authored Apr 26, 2022
1 parent 39c0c07 commit 16c0721
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,23 @@ on:
pull_request:
branches:
- master
- devmain
push:
branches:
- master
- devmain

jobs:
extraxt_branch:
runs-on: ubuntu-latest
outputs:
currentTag: ${{ steps.extract_branch.outputs.extract_branch }}
steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

unit_tests_with_coverage:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -53,8 +65,8 @@ jobs:

release:
name: Generate Release
if: ${{ github.event_name != 'pull_request' }}
needs: [unit_tests_with_coverage, lint_project, build_docker_image]
if: ${{ (github.event_name != 'pull_request') && (needs.extract_branch.outputs.branch == 'master') }}
needs: [unit_tests_with_coverage, lint_project, build_docker_image, extraxt_branch]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 16c0721

Please sign in to comment.