Write contributors to file #250
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
name: Write contributors to file | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '3 4 * * 0' | |
permissions: | |
actions: none | |
checks: none | |
contents: write | |
deployments: none | |
discussions: none | |
id-token: none | |
issues: none | |
packages: none | |
pages: none | |
pull-requests: write | |
repository-projects: none | |
security-events: none | |
statuses: none | |
jobs: | |
contributors_to_file: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
name: Write contributors to file | |
steps: | |
- name: Checkout repo | |
id: checkout | |
uses: actions/[email protected] | |
- name: Update contributors | |
id: update_contributors | |
uses: TheLastProject/[email protected] | |
with: | |
file_in_repo: app/src/main/res/raw/contributors.txt | |
min_commit_count: 5 | |
- name: Create Pull Request | |
uses: peter-evans/[email protected] | |
with: | |
title: "Update contributors" | |
commit-message: "Update contributors" | |
branch-suffix: timestamp |