Skip to content

Commit fe851e2

Browse files
authored
Merge pull request #11 from nodenv/default-branch-sync
default branch sync
2 parents d2436b2 + 1ab07e9 commit fe851e2

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: npm
7+
directory: "/"
8+
schedule: { interval: weekly }
9+
cooldown: { default-days: 15 }
10+
11+
- package-ecosystem: github-actions
12+
directory: "/"
13+
schedule: { interval: weekly }
14+
cooldown: { default-days: 15 }
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Sync Default Branch
2+
on:
3+
push: { branches: main }
4+
workflow_dispatch:
5+
permissions: { contents: read }
6+
7+
jobs:
8+
sync:
9+
permissions: { contents: write }
10+
uses: nodenv/.github/.github/workflows/sync-default-branch.yml@v4
11+
# One-time commands for users to switch-over:
12+
#
13+
# ```console
14+
# git branch -m master main
15+
# git fetch origin
16+
# git branch -u origin/main main
17+
# git remote set-head origin -a
18+
# ```

0 commit comments

Comments
 (0)