This action retrieves your repo's list of contributors and writes it to a requested file.
GitHub token to use, increases rate limit and thus reduces action runtime.
To not use a token, set value to an empty string.
Defaults to automatically generated temporary GITHUB_TOKEN.
Required The location of the file in the repository to write the contributor list to.
Put the following in .github/workflows/contributors-to-file.yml
:
jobs:
contributors_to_file:
runs-on: ubuntu-latest
name: Write contributors to file
steps:
- name: Checkout repo
id: checkout
uses: actions/checkout@v3
- name: Update contributors
id: update_contributors
uses: TheLastProject/contributors-to-file-action@v3
with:
file_in_repo: example/index.txt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: "Update contributors"
commit-message: "Update contributors"
branch-suffix: timestamp
on:
schedule:
- cron: '0 0 * * *'
Creative Commons Zero 1.0 Universal