Fetch contributions #2102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # | |
# # This action will fetch the commits across the org | |
# # and commit the changes to the repository. | |
# # This is set to run every 6 hours. | |
# # | |
name: Fetch contributions | |
on: | |
schedule: | |
- cron: "0 0 * * 0" # At 00:00 on Sunday | |
workflow_dispatch: | |
jobs: | |
action: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: yarn | |
- name: Fetch commits | |
run: | | |
cd scripts | |
yarn fetch:commit | |
- name: Push the changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: fetch and update contributions | |
commit_author: GH Actions <[email protected]> |