name: Contributors Package-json

on:
  schedule:
    - cron: '5 1 * * 0'
  workflow_dispatch:

jobs:
  package-json:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: wow-actions/update-contributors@v1
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          affiliation: all
          commit_message: "chore: Update Collaborators, Contributors etc. in package.json"
