mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-05 02:02:15 +00:00
Adjust Needs Output
- There is no need to emit the value of RUN_JOBS to the rest of the workflow. As a boolean, it is sufficient to ask whether or not the corresponding output is present at all - Prerequisites is apparently easy to misspell Issue gh-9701
This commit is contained in:
parent
a493660cdb
commit
441b9f8187
@ -38,12 +38,13 @@ jobs:
|
|||||||
path: job-prerequisites.txt
|
path: job-prerequisites.txt
|
||||||
- id: continue
|
- id: continue
|
||||||
name: Determine if should continue
|
name: Determine if should continue
|
||||||
run: echo "::set-output name=runjobs::${RUN_JOBS}"
|
if: env.RUN_JOBS == 'true'
|
||||||
|
run: echo "::set-output name=runjobs::true"
|
||||||
build_jdk_11:
|
build_jdk_11:
|
||||||
name: Build JDK 11
|
name: Build JDK 11
|
||||||
needs: [prerequisites]
|
needs: [prerequisites]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: needs.prequisites.outputs.runjobs == 'true'
|
if: needs.prerequisites.outputs.runjobs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
@ -76,7 +77,7 @@ jobs:
|
|||||||
name: Test against snapshots
|
name: Test against snapshots
|
||||||
needs: [prerequisites]
|
needs: [prerequisites]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: needs.prequisites.outputs.runjobs == 'true'
|
if: needs.prerequisites.outputs.runjobs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
@ -104,7 +105,7 @@ jobs:
|
|||||||
name: Static Code Analysis
|
name: Static Code Analysis
|
||||||
needs: [prerequisites]
|
needs: [prerequisites]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: needs.prequisites.outputs.runjobs == 'true'
|
if: needs.prerequisites.outputs.runjobs
|
||||||
env:
|
env:
|
||||||
SONAR_URL: ${{ secrets.SONAR_URL }}
|
SONAR_URL: ${{ secrets.SONAR_URL }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user