mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
Merge into one job
This commit is contained in:
parent
8fcff2e8b7
commit
2b2905afb9
1 changed files with 17 additions and 9 deletions
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
|
@ -8,15 +8,23 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [ "develop" ]
|
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
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
my_second_job:
|
|
||||||
name: Build call
|
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
|
runs-on: ubuntu-latest
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# if: ${{ success() }}
|
name: Checkout repository
|
||||||
|
# This job calls the build pipeline from local workflows directory
|
||||||
|
if: ${{ success() }}
|
||||||
- uses: ./.github/workflows/build.yml
|
- uses: ./.github/workflows/build.yml
|
||||||
|
name: 'Call build workflow'
|
||||||
|
if: ${{ !success() }}
|
||||||
|
- run: echo "Job failed"
|
||||||
|
shell: bash
|
Loading…
Reference in a new issue