From c56978ccb6fc7da46c4ed7094065e46f50a63f54 Mon Sep 17 00:00:00 2001 From: aloctavodia Date: Wed, 11 Sep 2024 09:20:07 -0300 Subject: [PATCH] build contributors page automatically --- .github/contributors.yml | 20 ++++++++++++++++++++ _quarto.yml | 2 ++ contributors.md | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 .github/contributors.yml create mode 100644 contributors.md diff --git a/.github/contributors.yml b/.github/contributors.yml new file mode 100644 index 0000000..9af0c7d --- /dev/null +++ b/.github/contributors.yml @@ -0,0 +1,20 @@ +on: + push: + branches: + - main + +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/contributors-readme-action@v2.3.10 + with: + readme_path: contributors.md + commit_message: 'updated contributors.md' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/_quarto.yml b/_quarto.yml index 19a31d4..d568e5b 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -52,6 +52,8 @@ website: - hierarchical_regression/r2d2m2.qmd - text: "Tools" href: tools.qmd + - text: "Contributors" + href: contributors.md format: html: diff --git a/contributors.md b/contributors.md new file mode 100644 index 0000000..ff41f83 --- /dev/null +++ b/contributors.md @@ -0,0 +1,2 @@ + + \ No newline at end of file