Skip to content

Collect contributors #4

Collect contributors

Collect contributors #4

name: Collect contributors
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * 1'
jobs:
run-r-script:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup R
uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
gh
allcontributors
- name: Collect contributor data
run: Rscript _scripts/collect_contributor_data.R
- uses: peter-evans/create-pull-request@10db75894f6d53fc01c3bb0995e95bd03e583a62
id: cpr
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update `_data/epiverse_contributors.csv`
committer: epiverse-trace-bot <epiverse-trace-bot@users.noreply.github.com>
author: epiverse-trace-bot <epiverse-trace-bot@users.noreply.github.com>
branch: update-contributors
branch-suffix: timestamp
add-paths: _data
title: Automated update of contributor data
reviewers: chartgerink
delete-branch: true