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
/
Copy pathgenerate-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@df4cb1c069e1874edd31b4311f1884172cec0e10 # 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@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
id: get-issues
with:
retries: 3
script: |
const script = require('.github/workflows/scripts/generate-weekly-report.js')
await script({github, context})