/contributors-to-file-action

[FORK] GitHub Action to save your contributor list to a file

Primary LanguagePythonCreative Commons Zero v1.0 UniversalCC0-1.0

Contributors To File Docker action

This action retrieves your repo's list of contributors and writes it to a requested file.

Inputs

token

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.

file_in_repo

Required The location of the file in the repository to write the contributor list to.

Example usage

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 * * *'

License

Creative Commons Zero 1.0 Universal