Cleanup all pip commands in the various workflow - drop the install/upgrade for setuptool pip and wheel, seems like this was introduced few years back to work around some old bug and it's not needed anymore - use pip instead of pip3, that's probably been equivalent for quite a long time in the CI image Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
25 lines
815 B
YAML
25 lines
815 B
YAML
name: Merged PR stats
|
|
|
|
on:
|
|
pull_request_target:
|
|
branches:
|
|
- main
|
|
- v*-branch
|
|
types: [closed]
|
|
jobs:
|
|
record_merged:
|
|
if: github.event.pull_request.merged == true && github.repository == 'zephyrproject-rtos/zephyr'
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
- name: PR event
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
ELASTICSEARCH_KEY: ${{ secrets.ELASTICSEARCH_KEY }}
|
|
ELASTICSEARCH_SERVER: "https://elasticsearch.zephyrproject.io:443"
|
|
PR_STAT_ES_INDEX: ${{ vars.PR_STAT_ES_INDEX }}
|
|
run: |
|
|
pip install pygithub elasticsearch
|
|
python3 ./scripts/ci/stats/merged_prs.py --pull-request ${{ github.event.pull_request.number }} --repo ${{ github.repository }}
|