Skip to content

Commit 183a1af

Browse files
committed
try to sort dependency graph workflow exec seq
1 parent d4bc876 commit 183a1af

File tree

3 files changed

+46
-7
lines changed

3 files changed

+46
-7
lines changed

Diff for: .github/workflows/codeql.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ jobs:
5656
java-version: 11
5757
if: matrix.language == 'java'
5858

59-
# Submit dependency graph Step 1
60-
- name: Generate and save dependency graph
61-
uses: gradle/actions/dependency-submission@v3
62-
with:
63-
dependency-graph: generate-and-upload
59+
# # Submit dependency graph Step 1
60+
# - name: Generate and save dependency graph
61+
# uses: gradle/actions/dependency-submission@v3
62+
# with:
63+
# dependency-graph: generate-and-upload
6464

6565
# https://docs.gradle.org/current/userguide/performance.html
6666
- name: Build

Diff for: .github/workflows/generate-dependency-graph.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
name: Generate and save dependency graph
19+
20+
on:
21+
pull_request:
22+
23+
permissions:
24+
contents: read # 'write' permission is not available
25+
26+
jobs:
27+
dependency-submission:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-java@v4
32+
with:
33+
distribution: zulu
34+
java-version: 11
35+
36+
- name: Generate and save dependency graph
37+
uses: gradle/actions/dependency-submission@v3
38+
with:
39+
dependency-graph: generate-and-upload

Diff for: .github/workflows/dependency-graph.yml renamed to .github/workflows/submit-dependency-graph.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
#
1717

1818
# https://github.com/gradle/actions/blob/main/docs/dependency-submission.md#usage-with-pull-requests-from-public-forked-repositories
19-
name: Submit dependency graph
19+
name: Download and submit dependency graph
2020

2121
on:
2222
workflow_run:
23-
workflows: [ 'CodeQL' ]
23+
workflows: [ 'Generate and save dependency graph' ]
2424
types: [ completed ]
2525

2626
permissions:

0 commit comments

Comments
 (0)