From 13e2c32628bdf5cce4adc8573455dc3a82fae714 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:28:15 +0100 Subject: [PATCH] Bump actions/upload-artifact from 4.3.3 to 4.4.3 (#352) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.3 to 4.4.3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4.3.3...v4.4.3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 1c33a634133769fd303cf98064fc1f392ada1b75) # Conflicts: # .github/workflows/pr-stats.yml --- .github/workflows/pr-stats.yml | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/pr-stats.yml diff --git a/.github/workflows/pr-stats.yml b/.github/workflows/pr-stats.yml new file mode 100644 index 0000000000..0831d0abe5 --- /dev/null +++ b/.github/workflows/pr-stats.yml @@ -0,0 +1,50 @@ +name: "Create PR Stats" + +on: + workflow_dispatch: + pull_request: # run if the file changed on a PR to master + branches: + - master + paths: + - 'make_help_scripts/create_pr_stats.py' + push: # run if the file changed by pushes to master + branches: + - master + paths: + - 'make_help_scripts/create_pr_stats.py' + schedule: + # Run every morning to ensure component documentation is up to date on deployment + - cron: '23 3 * * *' + +jobs: + create-pr-stats: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: 'pip' + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install --upgrade --requirement requirements.txt + shell: bash + - name: Get stats + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + python make_help_scripts/create_pr_stats.py + shell: bash + - name: Cache stats + uses: actions/cache/save@v4 + with: + key: reviewer-stats-${{ github.run_id }} + path: ~/reviews + - name: Upload Artifacts + uses: actions/upload-artifact@v4.4.3 + with: + name: pr-stats + path: ~/reviews