Skip to content

πŸ’š fix condition #98

πŸ’š fix condition

πŸ’š fix condition #98

Workflow file for this run

name: πŸ‘· Main
on:
push:
branches: [main]
jobs:
check_main_branch:
runs-on: ubuntu-latest
steps:
- name: Check if it comes from the main branch
id: main_branch_check
run: echo "::set-output name=is_main::${{ github.ref == 'refs/heads/main' }}"
check_lint:
needs: check_main_branch
if: needs.check_main_branch.outputs.is_main == 'true'
uses: ./.github/workflows/checkLint.yml
secrets: inherit
check_type:
needs: check_main_branch
if: needs.check_main_branch.outputs.is_main == 'true'
uses: ./.github/workflows/checkType.yml
secrets: inherit
unit_test:
needs: check_main_branch
if: needs.check_main_branch.outputs.is_main == 'true'
uses: ./.github/workflows/unitTest.yml
secrets: inherit