From 73f6d81b9a038636d89912b80a92ade472f26d42 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Wed, 25 Sep 2024 17:01:32 -0300 Subject: [PATCH] Test automating oss nuget stats generation --- .github/workflows/nuget.yml | 33 +++++++++++++++++++++++++++++++++ readme.md | 4 ++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/nuget.yml create mode 100644 readme.md diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml new file mode 100644 index 0000000..dab5851 --- /dev/null +++ b/.github/workflows/nuget.yml @@ -0,0 +1,33 @@ +name: nuget +on: + workflow_dispatch: + schedule: + - cron: "0 3 * * *" + +jobs: + changelog: + runs-on: ubuntu-latest + steps: + - name: 🤖 defaults + uses: devlooped/actions-bot@v1 + with: + name: ${{ secrets.BOT_NAME }} + email: ${{ secrets.BOT_EMAIL }} + gh_token: ${{ secrets.GH_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: 🤘 checkout + uses: actions/checkout@v4 + with: + ref: main + token: ${{ env.GH_TOKEN }} + + - name: ⚙ sponsors + run: | + dotnet tool update -g dotnet-sponsor + sponsor nuget + + - name: ⬆️ commit + run: | + git add *.json + (git commit -m "🖉 Update OSS contributors stats" && git push) || echo "Done" \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..c17d72e --- /dev/null +++ b/readme.md @@ -0,0 +1,4 @@ +NuGet Contribution Graph +=== + +Generates and updates the nuget.json file containing all active nuget packages, their associated repositories and contributors. \ No newline at end of file