Updated main.yml file

This commit is contained in:
Mdumisi Kelvin Letsie 2024-03-06 11:47:33 +02:00
parent 2d94490cfb
commit 598dd0bf55
2 changed files with 13 additions and 8 deletions

View file

@ -5,7 +5,7 @@
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CI with Gradle
name: Java Gradle Build
on:
push:

View file

@ -13,17 +13,22 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
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
name: My First step
- uses: ./.github/workflows/build.yml
name: Call build pipeline to build Java app
name: Checkout repository
# This job calls the build pipeline from local workflows directory
my_second_job:
needs: my_first_job
name: Build call
runs-on: ubuntu-latest
steps:
# if: ${{ success() }}
- uses: ./.github/workflows/build.yml