diff --git a/.github/workflows/update-contributors.yml b/.github/workflows/update-contributors.yml new file mode 100644 index 0000000..7ea89fc --- /dev/null +++ b/.github/workflows/update-contributors.yml @@ -0,0 +1,29 @@ +name: Update Contributors File + +on: + push: + branches: + - main + +jobs: + update-contributors: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Fetch contributors from GitHub API + run: | + curl -s https://api.github.com/repos/${{ github.repository }}/contributors \ + | jq -r '.[] | "- [@\(.login)](https://github.com/\(.login))"' \ + > CONTRIBUTORS.md + + - name: Commit and push CONTRIBUTORS file + uses: EndBug/add-and-commit@v9 + with: + author_name: "GitHub Actions" + author_email: "github-actions@github.com" + message: "Update CONTRIBUTORS file" diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md new file mode 100644 index 0000000..7fbefba --- /dev/null +++ b/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +# Contributors + +This project exists thanks to inDrive experts the wonderful people who contribute. If you want to contribute, please check the [Contributing Guidelines](./docs/about-handbook/handbook-contributing.md). \ No newline at end of file diff --git a/README.md b/README.md index c1cbbfd..9bd0593 100644 --- a/README.md +++ b/README.md @@ -162,9 +162,15 @@ To contribute to this handbook, please refer to our guide: ["Contributing to the * [Tech and Business Glossary](./docs/glossary/tech-business-glossary.md) ## Abbreviations and Acronyms + * [Abbreviations and Acronyms](./docs/abbreviations-and-acronyms.md) +## Contributors + +* [Contributors](./CONTRIBUTORS.md). + + ## License This project is open source and is licensed under the MIT License. For more details, please see the [LICENSE](LICENSE) file.