forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.08 KB
/
generate-weekly-report.yml
File metadata and controls
33 lines (30 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This action generates a weekly report as a github issue
# More details in https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/24672
name: 'Generate Weekly Report'
on:
workflow_dispatch:
schedule:
# run every tuesday at 1am UTC
- cron: "0 1 * * 2"
permissions:
contents: read
jobs:
get_issues:
permissions:
issues: write # required for creating weekly report issues
runs-on: ubuntu-24.04
if: ${{ github.repository_owner == 'open-telemetry' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- run: |
cp ../configs/generate-weekly-report/package.json .
cp ../configs/generate-weekly-report/package-lock.json .
npm ci
working-directory: ./.github/workflows/scripts
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
id: get-issues
with:
retries: 3
script: |
const script = require('.github/workflows/scripts/generate-weekly-report.js')
await script({github, context})