Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create add-dependabot-pr-to-project.yml #278

Merged
merged 3 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/dependabot.template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
version: 2
registries:
ghcr:
type: docker-registry
url: ghcr.io
username: PAT
password: ${{ secrets.CONTAINER_BUILDER_TOKEN }}
updates:
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 20
vendor: true
- package-ecosystem: "docker"
directory: "/"
registries:
- ghcr
schedule:
interval: "daily"
open-pull-requests-limit: 20
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 20
22 changes: 22 additions & 0 deletions .github/workflows/add-dependabot-pr-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Assign Dependabot PR to Compute Foundation Project

on:
workflow_dispatch:
pull_request:
types: [opened, reopened, labeled]

permissions:
contents: read
pull-requests: write

jobs:
add-to-project:
name: Add to Compute Foundation Project Board
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/github/projects/5753/ # Compute Foundation Project Board
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: dependencies,external-dependency
27 changes: 27 additions & 0 deletions .github/workflows/generate-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Generate dependabot.yml

on:
push:
repository_dispatch:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Generate dependabot.yml
uses: Makeshift/generate-dependabot-glob-action@5cd45385ce6519f68d574aab9699832b3a5e5031 # v1.3.4

- name: Create Pull Request
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6.0.0
with:
title: '[Automated] Update dependabot.yml'
body: |
This PR was automatically generated by the generate-dependabot.yml workflow.
Loading