obfusk / contributors-to-file-action

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:Creative Commons Zero v1.0 Universal


Languages

Language:Python 86.7%Language:Dockerfile 8.2%Language:Shell 5.0%