mirror of
https://github.com/gradle/actions.git
synced 2026-06-06 18:29:39 +08:00
242685e775
Bumps the github-actions group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `6.0.2` | `6.0.3` | | [actions/setup-node](https://github.com/actions/setup-node) | `6.3.0` | `6.4.0` | | [gradle/actions](https://github.com/gradle/actions) | `6.0.1` | `6.1.0` | | [tj-actions/changed-files](https://github.com/tj-actions/changed-files) | `47.0.5` | `47.0.6` | | [github/codeql-action](https://github.com/github/codeql-action) | `4.35.1` | `4.36.2` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `7.0.0` | `7.0.1` | | [actions/github-script](https://github.com/actions/github-script) | `8.0.0` | `9.0.0` | | [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) | `8.1.0` | `8.1.1` | Bumps the github-actions group with 2 updates in the /.github/actions/build-dist directory: [actions/setup-node](https://github.com/actions/setup-node) and [actions/upload-artifact](https://github.com/actions/upload-artifact). Updates `actions/checkout` from 6.0.2 to 6.0.3 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10) Updates `actions/setup-node` from 6.3.0 to 6.4.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e) Updates `gradle/actions` from 6.0.1 to 6.1.0 - [Release notes](https://github.com/gradle/actions/releases) - [Commits](https://github.com/gradle/actions/compare/39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f...50e97c2cd7a37755bbfafc9c5b7cafaece252f6e) Updates `tj-actions/changed-files` from 47.0.5 to 47.0.6 - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](https://github.com/tj-actions/changed-files/compare/22103cc46bda19c2b464ffe86db46df6922fd323...9426d40962ed5378910ee2e21d5f8c6fcbf2dd96) Updates `github/codeql-action` from 4.35.1 to 4.36.2 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/c10b8064de6f491fea524254123dbe5e09572f13...8aad20d150bbac5944a9f9d289da16a4b0d87c1e) Updates `actions/upload-artifact` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/bbbca2ddaa5d8feaa63e36b76fdaad77386f024f...043fb46d1a93c77aae656e7c1c64a875d1fc6a0a) Updates `actions/github-script` from 8.0.0 to 9.0.0 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/ed597411d8f924073f98dfc5c65a23a2325f34cd...3a2844b7e9c422d3c10d287c895573f7108da1b3) Updates `peter-evans/create-pull-request` from 8.1.0 to 8.1.1 - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/c0f553fe549906ede9cf27b5156039d195d2ece0...5f6978faf089d4d20b00c7766989d076bb2fc7f1) Updates `actions/setup-node` from 6.3.0 to 6.4.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e) Updates `actions/upload-artifact` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/bbbca2ddaa5d8feaa63e36b76fdaad77386f024f...043fb46d1a93c77aae656e7c1c64a875d1fc6a0a) Updates `actions/setup-node` from 6.3.0 to 6.4.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e) Updates `actions/upload-artifact` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/bbbca2ddaa5d8feaa63e36b76fdaad77386f024f...043fb46d1a93c77aae656e7c1c64a875d1fc6a0a) Updates `actions/setup-node` from 6.3.0 to 6.4.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e) Updates `actions/upload-artifact` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/bbbca2ddaa5d8feaa63e36b76fdaad77386f024f...043fb46d1a93c77aae656e7c1c64a875d1fc6a0a) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: 6.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: gradle/actions dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: tj-actions/changed-files dependency-version: 47.0.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action dependency-version: 4.36.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/github-script dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: peter-evans/create-pull-request dependency-version: 8.1.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: 6.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: 6.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: 6.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
424 lines
14 KiB
YAML
424 lines
14 KiB
YAML
name: Test dependency submission
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
cache-key-prefix:
|
|
type: string
|
|
default: '0'
|
|
runner-os:
|
|
type: string
|
|
default: '["ubuntu-latest"]'
|
|
skip-dist:
|
|
type: boolean
|
|
default: false
|
|
|
|
env:
|
|
SKIP_DIST: ${{ inputs.skip-dist }}
|
|
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: dependency-submission-${{ inputs.cache-key-prefix }}
|
|
GITHUB_DEPENDENCY_GRAPH_REF: 'refs/tags/v0.0.1' # Use a different ref to avoid updating the real dependency graph for the repository
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
dependency-submission-groovy-generate-and-upload:
|
|
permissions:
|
|
contents: write
|
|
strategy:
|
|
max-parallel: 1
|
|
fail-fast: false
|
|
matrix:
|
|
os: ${{fromJSON(inputs.runner-os)}}
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- name: Generate dependency graph
|
|
uses: ./dependency-submission
|
|
with:
|
|
dependency-graph: generate-and-upload
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
cache-read-only: false
|
|
env:
|
|
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: groovy-dependency-submission
|
|
|
|
dependency-submission-groovy-restore-cache:
|
|
permissions:
|
|
contents: write
|
|
needs: [dependency-submission-groovy-generate-and-upload]
|
|
strategy:
|
|
max-parallel: 1
|
|
fail-fast: false
|
|
matrix:
|
|
os: ${{fromJSON(inputs.runner-os)}}
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- name: Restore dependency graph
|
|
uses: ./dependency-submission
|
|
with:
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
additional-arguments: --offline
|
|
env:
|
|
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: groovy-dependency-submission
|
|
|
|
dependency-submission-groovy-download-and-submit:
|
|
permissions:
|
|
contents: write
|
|
needs: [dependency-submission-groovy-generate-and-upload]
|
|
strategy:
|
|
max-parallel: 1
|
|
fail-fast: false
|
|
matrix:
|
|
os: ${{fromJSON(inputs.runner-os)}}
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- name: Submit dependency graph
|
|
uses: ./dependency-submission
|
|
with:
|
|
dependency-graph: download-and-submit
|
|
env:
|
|
DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME: groovy-generate-and-upload-${{ matrix.os }}
|
|
|
|
dependency-submission-kotlin-generate-and-submit:
|
|
permissions:
|
|
contents: write
|
|
strategy:
|
|
max-parallel: 1
|
|
fail-fast: false
|
|
matrix:
|
|
os: ${{fromJSON(inputs.runner-os)}}
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- name: Generate and submit dependency graph
|
|
uses: ./dependency-submission
|
|
with:
|
|
build-root-directory: .github/workflow-samples/kotlin-dsl
|
|
|
|
dependency-submission-multiple-builds:
|
|
permissions:
|
|
contents: write
|
|
strategy:
|
|
max-parallel: 1
|
|
fail-fast: false
|
|
matrix:
|
|
os: ${{fromJSON(inputs.runner-os)}}
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- id: kotlin-dsl
|
|
uses: ./dependency-submission
|
|
with:
|
|
build-root-directory: .github/workflow-samples/kotlin-dsl
|
|
- id: groovy-dsl
|
|
uses: ./dependency-submission
|
|
with:
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
- id: groovy-dsl-again
|
|
uses: ./dependency-submission
|
|
with:
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
dependency-resolution-task: assemble
|
|
- name: Check generated dependency graphs
|
|
shell: bash
|
|
run: |
|
|
echo "kotlin-dsl report file: ${{ steps.kotlin-dsl.outputs.dependency-graph-file }}"
|
|
echo "groovy-dsl report file: ${{ steps.groovy-dsl.outputs.dependency-graph-file }}"
|
|
echo "groovy-dsl-again report file: ${{ steps.groovy-dsl-again.outputs.dependency-graph-file }}"
|
|
ls -l dependency-graph-reports
|
|
if [ ! -e "${{ steps.kotlin-dsl.outputs.dependency-graph-file }}" ]; then
|
|
echo "Did not find kotlin-dsl dependency graph file"
|
|
exit 1
|
|
fi
|
|
if [ ! -e "${{ steps.groovy-dsl.outputs.dependency-graph-file }}" ]; then
|
|
echo "Did not find groovy-dsl dependency graph file"
|
|
exit 1
|
|
fi
|
|
if [ ! -e "${{ steps.groovy-dsl-again.outputs.dependency-graph-file }}" ]; then
|
|
echo "Did not find groovy-dsl-again dependency graph file"
|
|
exit 1
|
|
fi
|
|
|
|
dependency-submission-multiple-builds-upload:
|
|
permissions:
|
|
contents: write
|
|
strategy:
|
|
max-parallel: 1
|
|
fail-fast: false
|
|
matrix:
|
|
os: ${{fromJSON(inputs.runner-os)}}
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- id: kotlin-dsl
|
|
uses: ./dependency-submission
|
|
with:
|
|
dependency-graph: generate-and-upload
|
|
build-root-directory: .github/workflow-samples/kotlin-dsl
|
|
- id: groovy-dsl
|
|
uses: ./dependency-submission
|
|
with:
|
|
dependency-graph: generate-and-upload
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
|
|
dependency-submission-config-cache:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-latest # Test is not compatible with Windows
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- id: config-cache-store
|
|
uses: ./dependency-submission
|
|
with:
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
additional-arguments: --configuration-cache
|
|
- name: Check and delete generated dependency graph
|
|
shell: bash
|
|
run: |
|
|
if [ ! -e "${{ steps.config-cache-store.outputs.dependency-graph-file }}" ]; then
|
|
echo "Did not find config-cache-store dependency graph files"
|
|
exit 1
|
|
fi
|
|
rm ${{ steps.config-cache-store.outputs.dependency-graph-file }}*
|
|
- id: config-cache-reuse
|
|
uses: ./dependency-submission
|
|
with:
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
additional-arguments: --configuration-cache
|
|
- name: Check no dependency graph is generated
|
|
shell: bash
|
|
run: |
|
|
if [ ! -z "$(ls -A dependency-graph-reports)" ]; then
|
|
echo "Expected no dependency graph files to be generated"
|
|
ls -l dependency-graph-reports
|
|
exit 1
|
|
fi
|
|
|
|
dependency-submission-gradle-versions:
|
|
permissions:
|
|
contents: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: ${{fromJSON(inputs.runner-os)}}
|
|
gradle: ['9.0.0', '8.14.3', '8.0.2', '7.6.4', '7.1.1', '6.9.4', '6.0.1', '5.6.4', '5.2.1']
|
|
include:
|
|
- java-version: 17
|
|
- gradle: '8.14.3'
|
|
java-version: 11
|
|
- gradle: '8.0.2'
|
|
java-version: 11
|
|
- gradle: '7.6.4'
|
|
java-version: 11
|
|
- gradle: '7.1.1'
|
|
java-version: 11
|
|
- gradle: '6.9.4'
|
|
java-version: 11
|
|
- gradle: '6.0.1'
|
|
java-version: 11
|
|
- gradle: '5.6.4'
|
|
java-version: 11
|
|
build-root-suffix: -gradle-5
|
|
- gradle: '5.2.1'
|
|
java-version: 11
|
|
build-root-suffix: -gradle-5
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
with:
|
|
java-version: ${{ matrix.java-version }}
|
|
- name: Generate and submit dependencies
|
|
uses: ./dependency-submission
|
|
with:
|
|
gradle-version: ${{ matrix.gradle }}
|
|
build-root-directory: .github/workflow-samples/no-wrapper${{ matrix.build-root-suffix }}
|
|
|
|
dependency-submission-with-setup-gradle:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-latest # Test is not compatible with Windows
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- name: Setup Gradle
|
|
uses: ./setup-gradle
|
|
- name: Generate and submit dependencies
|
|
id: dependency-submission
|
|
uses: ./dependency-submission
|
|
with:
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
- name: Check and delete generated dependency graph
|
|
shell: bash
|
|
run: |
|
|
if [ ! -e "${{ steps.dependency-submission.outputs.dependency-graph-file }}" ]; then
|
|
echo "Did not find generated dependency graph files"
|
|
exit 1
|
|
fi
|
|
rm ${{ steps.dependency-submission.outputs.dependency-graph-file }}*
|
|
- name: Run Gradle build
|
|
run: ./gradlew build
|
|
working-directory: .github/workflow-samples/groovy-dsl
|
|
- name: Check no dependency graph is generated
|
|
shell: bash
|
|
run: |
|
|
if [ ! -z "$(ls -A dependency-graph-reports)" ]; then
|
|
echo "Expected no dependency graph files to be generated"
|
|
ls -l dependency-graph-reports
|
|
exit 1
|
|
fi
|
|
|
|
dependency-submission-with-includes-and-excludes:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-latest # Test is not compatible with Windows
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- name: Generate and submit dependencies
|
|
id: dependency-submission
|
|
uses: ./dependency-submission
|
|
with:
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
dependency-graph-exclude-projects: excluded-project
|
|
dependency-graph-include-projects: included-project
|
|
dependency-graph-exclude-configurations: excluded-configuration
|
|
dependency-graph-include-configurations: included-configuration
|
|
- name: Check generated dependency graph and env vars
|
|
shell: bash
|
|
run: |
|
|
if [ ! -e "${{ steps.dependency-submission.outputs.dependency-graph-file }}" ]; then
|
|
echo "Did not find generated dependency graph file"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$DEPENDENCY_GRAPH_EXCLUDE_PROJECTS" != "excluded-project" ] ||
|
|
[ "$DEPENDENCY_GRAPH_INCLUDE_PROJECTS" != "included-project" ] ||
|
|
[ "$DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS" != "excluded-configuration" ] ||
|
|
[ "$DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS" != "included-configuration" ]; then
|
|
echo "Did not set expected environment variables"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
dependency-submission-custom-report-dir-submit:
|
|
permissions:
|
|
contents: write
|
|
strategy:
|
|
max-parallel: 1
|
|
fail-fast: false
|
|
matrix:
|
|
os: ${{fromJSON(inputs.runner-os)}}
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- name: Generate dependency graph
|
|
id: dependency-graph
|
|
uses: ./dependency-submission
|
|
with:
|
|
dependency-graph: generate-and-submit
|
|
dependency-graph-report-dir: '${{ github.workspace }}/custom/report-dir'
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
- name: Check generated dependency graphs
|
|
shell: bash
|
|
run: |
|
|
echo "report file: ${{ steps.dependency-graph.outputs.dependency-graph-file }}"
|
|
|
|
if [ ! -e "${{ steps.dependency-graph.outputs.dependency-graph-file }}" ]; then
|
|
echo "Did not find dependency graph file"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$(ls -A "${{ github.workspace }}/custom/report-dir")" ]; then
|
|
echo "No dependency graph files found in custom directory"
|
|
exit 1
|
|
fi
|
|
|
|
dependency-submission-custom-report-dir-upload:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- name: Generate and upload dependency graph
|
|
id: dependency-graph
|
|
uses: ./dependency-submission
|
|
with:
|
|
dependency-graph: generate-and-upload
|
|
dependency-graph-report-dir: '${{ github.workspace }}/custom/report-dir'
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
|
|
dependency-submission-custom-report-dir-download-and-submit:
|
|
permissions:
|
|
contents: write
|
|
needs: [dependency-submission-custom-report-dir-upload]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
- name: Initialize integ-test
|
|
uses: ./.github/actions/init-integ-test
|
|
|
|
- name: Download and submit dependency graph
|
|
uses: ./dependency-submission
|
|
with:
|
|
dependency-graph: download-and-submit
|
|
dependency-graph-report-dir: '${{ github.workspace }}/custom/report-dir'
|
|
build-root-directory: .github/workflow-samples/groovy-dsl
|
|
env:
|
|
DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME: custom-report-dir-upload # For testing, to avoid downloading artifacts from other worklfows
|
|
|
|
- name: Check downloaded dependency graph
|
|
shell: bash
|
|
run: |
|
|
if [ -z "$(ls -A "${{ github.workspace }}/custom/report-dir")" ]; then
|
|
echo "No dependency graph files found in custom directory"
|
|
exit 1
|
|
fi
|