Skip to content

submit-dependency-snapshot #21

submit-dependency-snapshot

submit-dependency-snapshot #21

# 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