Skip to content

Commit 5d7b530

Browse files
authored
Merge pull request #278 from github/jhongturney/dependabot-project-link
Create add-dependabot-pr-to-project.yml
2 parents ab6429e + 2aaa6e8 commit 5d7b530

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

.github/dependabot.template.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
version: 2
3+
registries:
4+
ghcr:
5+
type: docker-registry
6+
url: ghcr.io
7+
username: PAT
8+
password: ${{ secrets.CONTAINER_BUILDER_TOKEN }}
9+
updates:
10+
- package-ecosystem: "bundler"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
open-pull-requests-limit: 20
15+
vendor: true
16+
- package-ecosystem: "docker"
17+
directory: "/"
18+
registries:
19+
- ghcr
20+
schedule:
21+
interval: "daily"
22+
open-pull-requests-limit: 20
23+
- package-ecosystem: "github-actions"
24+
directory: "/"
25+
schedule:
26+
interval: "daily"
27+
open-pull-requests-limit: 20
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Assign Dependabot PR to Compute Foundation Project
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
types: [opened, reopened, labeled]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
13+
jobs:
14+
add-to-project:
15+
name: Add to Compute Foundation Project Board
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/[email protected]
19+
with:
20+
project-url: https://github.com/orgs/github/projects/5753/ # Compute Foundation Project Board
21+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
22+
labeled: dependencies,external-dependency
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Generate dependabot.yml
3+
4+
on:
5+
push:
6+
repository_dispatch:
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
generate:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Generate dependabot.yml
20+
uses: Makeshift/generate-dependabot-glob-action@5cd45385ce6519f68d574aab9699832b3a5e5031 # v1.3.4
21+
22+
- name: Create Pull Request
23+
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6.0.0
24+
with:
25+
title: '[Automated] Update dependabot.yml'
26+
body: |
27+
This PR was automatically generated by the generate-dependabot.yml workflow.

0 commit comments

Comments
 (0)