Merge into one job

This commit is contained in:
Mdumisi Kelvin Letsie 2024-03-06 13:36:45 +02:00
parent 8fcff2e8b7
commit 2b2905afb9

View file

@ -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
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