Skip to content

Commit

Permalink
WIP: file sync
Browse files Browse the repository at this point in the history
  • Loading branch information
MSevey committed Dec 3, 2024
1 parent 5c79fab commit 9090360
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/dependabot.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
{% for dep in deps %}
- package-ecosystem: {{dep.ecosystem}}
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
groups:
patch-updates:
applies-to: version-updates
update-types:
- "patch"
- "minor"
commit-message:
include: "scope"
prefix: "build"
{% endfor %}
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ updates:
update-types:
- "patch"
- "minor"
# Including this due to certain github action steps installing via npm
- package-ecosystem: npm
directory: "/"
schedule:
Expand Down
98 changes: 98 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Use individual repo settings for files that differ
rollkit/.github:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]

Check failure on line 6 in .github/sync.yml

View workflow job for this annotation

GitHub Actions / yamllint

6:15 [braces] too many spaces inside braces

Check failure on line 6 in .github/sync.yml

View workflow job for this annotation

GitHub Actions / yamllint

6:35 [braces] too many spaces inside braces

Check failure on line 6 in .github/sync.yml

View workflow job for this annotation

GitHub Actions / yamllint

6:40 [braces] too many spaces inside braces

Check failure on line 6 in .github/sync.yml

View workflow job for this annotation

GitHub Actions / yamllint

6:68 [braces] too many spaces inside braces
rollkit/astria-sequencer:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]

Check failure on line 11 in .github/sync.yml

View workflow job for this annotation

GitHub Actions / yamllint

11:15 [braces] too many spaces inside braces

Check failure on line 11 in .github/sync.yml

View workflow job for this annotation

GitHub Actions / yamllint

11:35 [braces] too many spaces inside braces

Check failure on line 11 in .github/sync.yml

View workflow job for this annotation

GitHub Actions / yamllint

11:40 [braces] too many spaces inside braces

Check failure on line 11 in .github/sync.yml

View workflow job for this annotation

GitHub Actions / yamllint

11:68 [braces] too many spaces inside braces
rollkit/avail-da:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]

Check failure on line 16 in .github/sync.yml

View workflow job for this annotation

GitHub Actions / yamllint

16:15 [braces] too many spaces inside braces

Check failure on line 16 in .github/sync.yml

View workflow job for this annotation

GitHub Actions / yamllint

16:35 [braces] too many spaces inside braces
rollkit/bitcoin-da:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/centralized-sequencer:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/cosmos-sdk-starter:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/cosmwasm:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/docs:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/go-da:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/go-execution:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/go-execution-abci:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/go-sequencing:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/local-da:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/rollkit:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]
rollkit/template-da-repo:
- source: .github/dependabot.njk
dest: .github/dependabot.yml
template:
deps: [{ ecosystem: "docker" }, { ecosystem: "github-actions" }]

# Use groups for common files that have no differences
group:
repos: |
rollkit/.github
rollkit/astria-sequencer
rollkit/avail-da
rollkit/bitcoin-da
rollkit/centralized-sequencer
rollkit/cosmos-sdk-starter
rollkit/cosmwasm
rollkit/docs
rollkit/go-da
rollkit/go-execution
rollkit/go-execution-abci
rollkit/go-sequencing
rollkit/local-da
rollkit/rollkit
rollkit/template-da-repo
files:
- .github/workflows/semantic_pull_request.yml
- .github/workflows/semantic_release.yml
19 changes: 19 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Sync Files
on:
push:
branches:
- main
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@main
- name: Run GitHub File Sync
uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.SYNC }}
PR_LABELS: "action sync"
COMMIT_PREFIX: "chore: "
COMMIT_EACH_FILE: false

0 comments on commit 9090360

Please sign in to comment.