Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

ci: add automatic contributors list update (#439)

Tom Lienardb761141ab8ca
diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml
new file mode 100644
index 00000000..d0049c42
--- /dev/null
+++ b/.github/workflows/contributors.yml
@@ -0,0 +1,42 @@
+name: Contributors
+
+on:
+ schedule:
+ - cron: '0 0 * * *'
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
+
+env:
+ FORCE_COLOR: 3
+
+jobs:
+ update:
+ name: Update
+ timeout-minutes: 10
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ pull-requests: write
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Install
+ uses: ./tooling/github-actions/install
+
+ - name: Run contributors script
+ run: turbo dl-git
+
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@v5
+ with:
+ commit-message: 'chore: update contributors'
+ title: 'chore: update contributors'
+ branch: chore/update-contributors
+ base: main
+ delete-branch: true
+