diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aebe6e945..9b93986da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,15 +8,23 @@ on: push: branches: [ "develop" ] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - my_second_job: - name: Build call - runs-on: ubuntu-latest - steps: + + my_first_job: + name: Checkout + # This workflow contains a single job called "Checkout" + # The type of runner that the job will run on + runs-on: ubuntu-latest + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - # if: ${{ success() }} - - uses: ./.github/workflows/build.yml \ No newline at end of file + name: Checkout repository + # This job calls the build pipeline from local workflows directory + if: ${{ success() }} + - uses: ./.github/workflows/build.yml + name: 'Call build workflow' + if: ${{ !success() }} + - run: echo "Job failed" + shell: bash \ No newline at end of file