mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
31.06.2025 4c02c19e519fbe75e8de1c51f07274a68eacefe6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Update CODEOWNERS
 
on:
  push:
    branches:
      - main
  schedule:
    - cron: "0 0 1 * *" # runs on the first day of the month
  workflow_dispatch: # allow manual runs
 
jobs:
  update-codeowners:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v3
 
      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: "18"
 
      - name: Install Dependencies
        run: npm install node-fetch dotenv
 
      - name: Run Generate CODEOWNERS
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: node .github/scripts/codeowners.mjs i18n
 
      - name: Commit and Push Changes
        run: |
          git config --global user.name "Patrick Kollitsch"
          git config --global user.email "83281+davidsneighbour@users.noreply.github.com"
          git add .github/CODEOWNERS
          git commit -m "chore(codeowners): update CODEOWNERS for i18n" || exit 0
          git push