diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b8f85cc73..d22647e3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest permissions: - contents: read + contents: read steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0c8547fc..5f3111963 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,14 +21,15 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 name: Checkout repository + # This job calls the build pipeline from local workflows directory - - uses: ./.github/workflows/build.yml - name: 'Call build workflow' - if: ${{ success() }} - run: echo "Job succeeded" shell: bash + - uses: ./.github/workflows/build.yml + name: 'Call build workflow' + # If failed if: ${{ !success() }} - run: echo "Job failed" shell: bash \ No newline at end of file