mirror of
https://github.com/gradle/actions.git
synced 2025-04-21 18:29:18 +08:00
Fail if dependency-submission is used with setup-gradle
This commit is contained in:
parent
ebb21ef19c
commit
4ed5c634b1
@ -50,6 +50,13 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Check no setup-gradle
|
||||
shell: bash
|
||||
run: |
|
||||
if [ -n "${GRADLE_BUILD_ACTION_SETUP_COMPLETED}" ];
|
||||
echo "The dependency-submission action cannot be used in the same Job as the setup-gradle action. Please use a separate Job for dependency submission."
|
||||
exit 1
|
||||
fi
|
||||
- name: Generate dependency graph
|
||||
if: ${{ inputs.dependency-graph == 'generate-and-submit' || inputs.dependency-graph == 'generate-and-upload' }}
|
||||
uses: gradle/actions/setup-gradle@v3.0.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user