mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-03 02:34:21 +00:00
This action will generate a summary page with bug counts and issues counts for common labels. The report will be pubished on https://testing.zephyrproject.org/issues/zephyrproject-rtos/zephyr/index.html Example: https://testing.zephyrproject.org/issues/zephyrproject-rtos/docker-image/index.html Signed-off-by: Anas Nashif <anas.nashif@intel.com>
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
name: Issue Tracker
|
|
|
|
on:
|
|
issues:
|
|
types: [opened, labeled, closed]
|
|
|
|
env:
|
|
OUTPUT_FILE_NAME: IssuesReport.md
|
|
COMMITTER_EMAIL: actions@github.com
|
|
COMMITTER_NAME: github-actions
|
|
COMMITTER_USERNAME: github-actions
|
|
|
|
|
|
jobs:
|
|
track-issues:
|
|
name: "Collect Issue Stats"
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Download configuration file
|
|
run: |
|
|
wget -q https://raw.githubusercontent.com/$GITHUB_REPOSITORY/master/.github/workflows/issues-report-config.json
|
|
|
|
- name: install-packages
|
|
run: |
|
|
sudo apt-get install discount
|
|
|
|
- uses: brcrista/summarize-issues@v3
|
|
with:
|
|
title: 'Issues Report for ${{ github.repository }}'
|
|
configPath: 'issues-report-config.json'
|
|
outputPath: ${{ env.OUTPUT_FILE_NAME }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: upload-stats
|
|
uses: actions/upload-artifact@master
|
|
continue-on-error: True
|
|
with:
|
|
name: ${{ env.OUTPUT_FILE_NAME }}
|
|
path: ${{ env.OUTPUT_FILE_NAME }}
|
|
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@v1
|
|
with:
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TESTING }}
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TESTING }}
|
|
aws-region: us-east-1
|
|
|
|
- name: Post Results
|
|
run: |
|
|
mkd2html IssuesReport.md IssuesReport.html
|
|
aws s3 cp --quiet IssuesReport.html s3://testing.zephyrproject.org/issues/$GITHUB_REPOSITORY/index.html
|
|
|