-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use workflow that takes multiple repo
Signed-off-by: Alex Goodman <[email protected]>
- Loading branch information
Showing
2 changed files
with
51 additions
and
69 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,51 @@ | ||
name: PR to update Anchore dependencies | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
repos: | ||
description: "List of dependencies to update" | ||
required: true | ||
type: string | ||
default: | | ||
github.com/anchore/stereoscope@latest | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'anchore' # only run for main repo (not forks) | ||
steps: | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 #v4.2.1 | ||
|
||
- name: Bootstrap environment | ||
uses: ./.github/actions/bootstrap | ||
with: | ||
tools: false | ||
bootstrap-apt-packages: "" | ||
|
||
- name: Update dependencies | ||
id: update | ||
uses: anchore/workflows/.github/actions/update-go-dependency@add-dep-update | ||
with: | ||
repos: ${{ github.event.inputs.repos }} | ||
|
||
- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a #v2.1.0 | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.TOKEN_APP_ID }} | ||
private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} | ||
|
||
- uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f #v7.0.5 | ||
with: | ||
signoff: true | ||
delete-branch: true | ||
draft: ${{ steps.update.outputs.draft }} | ||
# do not change this branch, as other workflows depend on it | ||
branch: auto/integration | ||
labels: dependencies,pre-release | ||
commit-message: "chore(deps): update anchore dependencies" | ||
title: "chore(deps): update anchore dependencies" | ||
body: ${{ steps.update.outputs.changelog }} | ||
token: ${{ steps.generate-token.outputs.token }} |