-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: clean dependency graph manually (#386)
- Loading branch information
1 parent
7aecea8
commit 6bab050
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Clear dependency graph for a correlator | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
job-correlator: | ||
description: Key that is used to group snapshots submitted over time | ||
|
||
jobs: | ||
clean-up: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Set current timestamp as env variable | ||
run: echo "NOW=$(date -Iseconds)" >> $GITHUB_ENV | ||
- name: Submit empty dependency graph | ||
run: | | ||
curl -L \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ github.token }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://github.com/gitapi/repos/${{ github.repository }}/dependency-graph/snapshots \ | ||
-d '{ "version" : 0, "job" : { "id" : "${{ github.run_id }}", "correlator" : "${{ inputs.job-correlator }} " }, "sha" : "${{ github.sha }}", "ref" : "${{ github.ref }}", "detector" : { "name" : "GitHub Dependency Graph Gradle Plugin", "version" : "0.0.3", "url" : "https://github.com/gradle/github-dependency-graph-gradle-plugin" }, "manifests" : {}, "scanned" : "${{ env.NOW }}" }' |