Skip to content

Generate Weekly Report #21

Generate Weekly Report

Generate Weekly Report #21

# 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- 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})