mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Merge into one job
This commit is contained in:
parent
8fcff2e8b7
commit
2b2905afb9
1 changed files with 17 additions and 9 deletions
26
.github/workflows/main.yml
vendored
26
.github/workflows/main.yml
vendored
|
@ -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
|
Loading…
Reference in a new issue