Skip to content

Commit

Permalink
Add GitHub Actions workflows and configuration files for file synchro…
Browse files Browse the repository at this point in the history
…nization, label creation, and auto-merge

- Add `.github/sync.yml` for syncing files across repositories
- Add `.github/labels.yml` for defining GitHub issue labels
- Add `.github/workflows/sync.yml` for automating file synchronization
- Add `.github/workflows/create-labels.yml` for automating label creation
- Add `.github/workflows/auto-merge.yml` for automating dependency updates
- Add `.github/dependabot.yml` for configuring Dependabot updates
- Add `.github/auto-merge.yml` for auto-merging dependency updates
- Add `.github/FUNDING.yml` for funding links
- Add `.github/CODEOWNERS` for repository ownership configuration
  • Loading branch information
N6REJ committed Aug 8, 2024
1 parent 3e01556 commit 6044d45
Show file tree
Hide file tree
Showing 9 changed files with 213 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @N6REJ
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: N6REJ
custom: https://www.paypal.me/BearLeeAble
3 changes: 3 additions & 0 deletions .github/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- match:
dependency_type: all
update_type: "semver:minor" # includes patch updates!
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "08:00"
timezone: "America/Chicago"
labels:
- ":game_die: dependencies"
- ":robot: bot"
73 changes: 73 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
## more info https://github.com/crazy-max/ghaction-github-labeler
- # bot
name: ":robot: bot"
color: "69cde9"
description: ""
- # bug
name: ":bug: bug"
color: "b60205"
description: ""
- # dependencies
name: ":game_die: dependencies"
color: "0366d6"
description: ""
- # documentation
name: ":memo: documentation"
color: "c5def5"
description: ""
- # duplicate
name: ":busts_in_silhouette: duplicate"
color: "cccccc"
description: ""
- # enhancement
name: ":sparkles: enhancement"
color: "0054ca"
description: ""
- # feature request
name: ":bulb: feature request"
color: "0e8a16"
description: ""
- # feedback
name: ":mega: feedback"
color: "03a9f4"
description: ""
- # future maybe
name: ":rocket: future maybe"
color: "fef2c0"
description: ""
- # good first issue
name: ":hatching_chick: good first issue"
color: "7057ff"
description: ""
- # hold
name: ":hand: hold"
color: "24292f"
description: ""
- # invalid
name: ":no_entry_sign: invalid"
color: "e6e6e6"
description: ""
- # maybe bug
name: ":interrobang: maybe bug"
color: "ff5722"
description: ""
- # needs more info
name: ":thinking: needs more info"
color: "795548"
description: ""
- # Has PR
name: "PR :scientist:"
color: "FFFFFF"
description: "Has PR"
- # upstream
name: ":eyes: upstream"
color: "fbca04"
description: ""
- # wontfix
name: ":coffin: wontfix"
color: "ffffff"
description: ""
- # Hacktoberfest
name: "Hacktoberfest-accepted :mending_heart:"
description: "Accepted for Hacktoberfest"
from_name: "Hacktoberfest accepted"
71 changes: 71 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
group:
# Global files to be synced
- files:
- source: .github/CODEOWNERS
dest: .github/CODEOWNERS
- source: .github/FUNDING.yml
dest: .github/FUNDING.yml
- source: .github/dependabot.yml
dest: .github/dependabot.yml
- source: .github/labels.yml
dest: .github/labels.yml
- source: .github/workflows/create-labels.yml
dest: .github/workflows/create-labels.yml
- source: .github/workflows/release.yml
dest: .github/workflows/release.yml
- source: .github/auto-merge.yml
dest: .github/auto-merge.yml
- source: .github/workflows/auto-merge.yml
dest: .github/workflows/auto-merge.yml
- source: .gitignore
dest: .gitignore
- LICENSE
- favicon.ico
- source: .packager/
dest: .packager/
repos: |
N6REJ/Bears_audio_switcher
# only for N6REJ/BetterBags
- files:
- source: wow/BetterBags/core.lua
dest: core.lua
- source: wow/BetterBags/expansion.lua
dest: expansion.lua
repos: |
N6REJ/BetterBags_Bears_Alchemy
N6REJ/BetterBags_Bears_Battle_Pet_Items
N6REJ/BetterBags_Bears_Blacksmithing
N6REJ/BetterBags_Bears_Cooking
N6REJ/BetterBags_Bears_Enchanting
N6REJ/BetterBags_Bears_Engineering
N6REJ/BetterBags_Bears_Fishing
N6REJ/BetterBags-Bears-Fishing-Items
N6REJ/BetterBags_Bears_Hearthstones
N6REJ/BetterBags_Bears_Herbs
N6REJ/BetterBags_Bears_Inscription
N6REJ/BetterBags_Bears_Jewelcrafting
N6REJ/BetterBags_Bears_Keystones
N6REJ/BetterBags_Bears_Leatherworking
N6REJ/BetterBags_Bears_Mining
N6REJ/BetterBags_Bears_Tailoring
N6REJ/BetterBags_Bears_Ultimate
# only for Professions databases
- files:
- source: wow/DF-Global.lua
dest: DF-Global.lua
repos: |
N6REJ/BetterBags_Bears_Alchemy
N6REJ/BetterBags_Bears_Blacksmithing
N6REJ/BetterBags_Bears_Cooking
N6REJ/BetterBags_Bears_Enchanting
N6REJ/BetterBags_Bears_Engineering
N6REJ/BetterBags_Bears_Fishing
N6REJ/BetterBags_Bears_Herbs
N6REJ/BetterBags_Bears_Inscription
N6REJ/BetterBags_Bears_Jewelcrafting
N6REJ/BetterBags_Bears_Leatherworking
N6REJ/BetterBags_Bears_Mining
N6REJ/BetterBags_Bears_Tailoring
N6REJ/BetterBags_Bears_Ultimate
14 changes: 14 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: auto-merge

on:
pull_request:

jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ahmadnassri/[email protected]
with:
target: minor
github-token: ${{ secrets.mytoken }}
21 changes: 21 additions & 0 deletions .github/workflows/create-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Create labels

on:
push:
branches:
- 'main'
paths:
- '.github/labels.yml'
- '.github/workflows/create-labels.yml'

jobs:
labeler:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/[email protected]
-
name: Run Labeler
if: success()
uses: crazy-max/[email protected]
17 changes: 17 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Sync Files
on:
push:
branches:
- main
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Run GitHub File Sync
uses: BetaHuhn/repo-file-sync-action@latest
with:
GH_PAT: ${{ secrets.GH_PAT }}
SKIP_PR: true

0 comments on commit 6044d45

Please sign in to comment.