Skip to content

Commit

Permalink
Added workflow for contributors.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed Nov 13, 2024
1 parent d461d59 commit a7f97ff
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/fetch_contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Fetch Contributors

on:
pull_request: # This will run the workflow on pull request events
types:
- closed
schedule: # This will run the workflow on a schedule
- cron: '0 0 * * 0'
workflow_dispatch: # This will run the workflow on manual trigger

jobs:
contrib-readme-job:
runs-on: ubuntu-latest
name: A job to automate contrib in readme
permissions:
contents: write
pull-requests: write
steps:
- name: Contribute List
uses: akhilmhdh/[email protected]
with:
image_size: 32
readme_path: ./docs/contributors.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit changes
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
run: |
printf '%s\n' '$(curl "https://api.github.com/repos/Mahmud0808/Iconify/contributors")' > ./app/src/main/assets/Misc/contributors.json
14 changes: 14 additions & 0 deletions docs/contributors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Special Thanks

<!-- readme: siavash79,Mahmud0808,crdroidandroid,omnirom,ProjectMatrixx,SuperiorExtended -start -->
<!-- readme: siavash79,Mahmud0808,crdroidandroid,omnirom,ProjectMatrixx,SuperiorExtended -end -->

### Contributors

Thanks to those contributors, this project exists:

<!-- readme: contributors -start -->
<!-- readme: contributors -end -->

<!-- readme: thecubed -start -->
<!-- readme: thecubed -end -->

0 comments on commit a7f97ff

Please sign in to comment.