submit-dependency-snapshot #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Submits dependency graph info generated by other jobs to GitHub API | |
# This requires content-write permission, which is by default disabled if the PR-branch is from a "foreign" repo, | |
# https://github.com/gradle/gradle-build-action#enable-dependency-graph-generation-for-a-workflow | |
name: submit-dependency-snapshot | |
on: | |
workflow_run: | |
workflows: ['Build and test app'] | |
types: [completed] | |
# be explicit about the write permission for the API call. | |
permissions: | |
contents: write | |
jobs: | |
submit-snapshots: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Retrieve dependency graph artifact and submit | |
uses: gradle/gradle-build-action@v2 | |
with: | |
dependency-graph: download-and-submit |