Skip to content

Commit fa19292

Browse files
committed
chore: added workflows and notes
1 parent 4539474 commit fa19292

File tree

4 files changed

+778
-105
lines changed

4 files changed

+778
-105
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Generate TSC Meeting Transcript
2+
3+
on:
4+
issues:
5+
types: [closed]
6+
7+
jobs:
8+
generate-trancript:
9+
runs-on: ubuntu-latest
10+
11+
if: contains(github.event.issue.labels.*.name, 'tsc meeting')
12+
13+
env:
14+
TRANSCRIPT_GENERATED: false
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
cache: 'npm'
23+
24+
- name: Cache Node.js modules
25+
uses: actions/cache@v3
26+
with:
27+
path: ~/.npm
28+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-node-
31+
32+
- name: Install dependencies
33+
run: npm install
34+
35+
- name: Generate transcript
36+
run: npm run generate:transcript
37+
env:
38+
TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}
39+
ID: ${{ secrets.DISCORD_CHANNEL_ID }}
40+
ISSUE_TITLE: ${{ github.event.issue.title }}
41+
42+
- name: Configure Git identity
43+
run: |
44+
git config user.email "webpack[bot]@users.noreply.github.com"
45+
git config user.name "Webpack Bot"
46+
47+
- name: Commit generated transcript (if changed)
48+
run: |
49+
if [ -n "$(git status --porcelain)" ]; then
50+
echo "Files changed."
51+
git commit -a -m 'Add ${{ github.event.issue.title }} transcript'
52+
echo "TRANSCRIPT_GENERATED=true" >> $GITHUB_ENV
53+
fi
54+
55+
- name: Create Pull Request
56+
if: env.TRANSCRIPT_GENERATED == 'true'
57+
uses: peter-evans/create-pull-request@v3
58+
with:
59+
commit-message: Add ${{ github.event.issue.title }} transcript
60+
title: Add ${{ github.event.issue.title }} transcript
61+
branch: generate-meeting-transcript
62+
branch-suffix: timestamp
63+
author: Webpack Bot <webpack[bot]@users.noreply.github.com>
64+
committer: Webpack Bot <webpack[bot]@users.noreply.github.com>
65+
body: |
66+
Add ${{ github.event.issue.title }} transcript.
67+
68+
This PR is autogenerated by the "Generate Transcript" GitHub Action.
69+
env:
70+
GH_TOKEN: ${{ secrets.WEBPACK_GITHUB_BOT_TOKEN }}

meetings/28_04_2025.md

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)