1name: Issue Tracker
2
3on:
4  schedule:
5  - cron: '*/10 * * * *'
6
7env:
8  OUTPUT_FILE_NAME: IssuesReport.md
9  COMMITTER_EMAIL: actions@github.com
10  COMMITTER_NAME: github-actions
11  COMMITTER_USERNAME: github-actions
12
13
14jobs:
15  track-issues:
16    name: "Collect Issue Stats"
17    runs-on: ubuntu-22.04
18    if: github.repository == 'zephyrproject-rtos/zephyr'
19
20    steps:
21    - name: Download configuration file
22      run: |
23        wget -q https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/.github/workflows/issues-report-config.json
24
25    - name: install-packages
26      run: |
27        sudo apt-get update
28        sudo apt-get install discount
29
30    - uses: brcrista/summarize-issues@v3
31      with:
32        title: 'Issues Report for ${{ github.repository }}'
33        configPath: 'issues-report-config.json'
34        outputPath: ${{ env.OUTPUT_FILE_NAME }}
35        token: ${{ secrets.GITHUB_TOKEN }}
36
37    - name: upload-stats
38      uses: actions/upload-artifact@v3
39      continue-on-error: true
40      with:
41        name: ${{ env.OUTPUT_FILE_NAME }}
42        path: ${{ env.OUTPUT_FILE_NAME }}
43
44    - name: Configure AWS Credentials
45      uses: aws-actions/configure-aws-credentials@v2
46      with:
47        aws-access-key-id: ${{ vars.AWS_TESTING_ACCESS_KEY_ID }}
48        aws-secret-access-key: ${{ secrets.AWS_TESTING_SECRET_ACCESS_KEY }}
49        aws-region: us-east-1
50
51    - name: Post Results
52      run: |
53        mkd2html IssuesReport.md IssuesReport.html
54        aws s3 cp --quiet IssuesReport.html s3://testing.zephyrproject.org/issues/$GITHUB_REPOSITORY/index.html
55