|
1 | 1 | name: Generate TSC Meeting Transcript |
2 | 2 | on: |
3 | | - issues: |
4 | | - types: [closed] |
| 3 | + issues: |
| 4 | + types: [closed] |
5 | 5 | jobs: |
6 | | - generate-trancript: |
7 | | - runs-on: ubuntu-latest |
8 | | - permissions: |
9 | | - contents: write |
10 | | - pull-requests: write |
11 | | - if: contains(github.event.issue.labels.*.name, 'tsc meeting') |
12 | | - steps: |
13 | | - - uses: actions/checkout@v4 |
14 | | - - name: Setup Node.js |
15 | | - uses: actions/setup-node@v4 |
16 | | - with: |
17 | | - node-version: 'lts/*' |
18 | | - - name: Install dependencies |
19 | | - run: npm install |
20 | | - - name: Generate transcript |
21 | | - run: npm run generate:transcript |
22 | | - env: |
23 | | - TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} |
24 | | - ID: ${{ secrets.DISCORD_CHANNEL_ID }} |
25 | | - ISSUE_TITLE: ${{ github.event.issue.title }} |
26 | | - - name: Configure Git identity |
27 | | - run: | |
28 | | - git config user.email "eslint[bot]@users.noreply.github.com" |
29 | | - git config user.name "ESLint Bot" |
30 | | - - name: Commit generated transcript (if changed) |
31 | | - run: | |
32 | | - if [ -z "$(git status --porcelain)" ]; then |
33 | | - echo "No changed files. Skipping commit." |
34 | | - else |
35 | | - echo "Files changed." |
36 | | - git add . |
37 | | - git commit -m 'Add ${{ github.event.issue.title }} transcript' |
38 | | - echo "TRANSCRIPT_GENERATED=true" >> $GITHUB_ENV |
39 | | - fi |
40 | | - - name: Create Pull Request |
41 | | - if: env.TRANSCRIPT_GENERATED == 'true' |
42 | | - uses: peter-evans/create-pull-request@v7 |
43 | | - with: |
44 | | - commit-message: Add ${{ github.event.issue.title }} transcript |
45 | | - title: Add ${{ github.event.issue.title }} transcript |
46 | | - branch: generate-meeting-transcript |
47 | | - branch-suffix: timestamp |
48 | | - author: ESLint Bot <eslint[bot]@users.noreply.github.com> |
49 | | - committer: ESLint Bot <eslint[bot]@users.noreply.github.com> |
50 | | - body: | |
51 | | - Add ${{ github.event.issue.title }} transcript. |
52 | | - |
53 | | - This PR is autogenerated by the "Generate Transcript" GitHub Action. |
| 6 | + generate-trancript: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + permissions: |
| 9 | + contents: write |
| 10 | + pull-requests: write |
| 11 | + if: contains(github.event.issue.labels.*.name, 'tsc meeting') |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v6 |
| 14 | + - name: Setup Node.js |
| 15 | + uses: actions/setup-node@v6 |
| 16 | + with: |
| 17 | + node-version: "lts/*" |
| 18 | + - name: Install dependencies |
| 19 | + run: npm install |
| 20 | + - name: Generate transcript |
| 21 | + run: npm run generate:transcript |
| 22 | + env: |
| 23 | + TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} |
| 24 | + ID: ${{ secrets.DISCORD_CHANNEL_ID }} |
| 25 | + ISSUE_TITLE: ${{ github.event.issue.title }} |
| 26 | + - name: Configure Git identity |
| 27 | + run: | |
| 28 | + git config user.email "eslint[bot]@users.noreply.github.com" |
| 29 | + git config user.name "ESLint Bot" |
| 30 | + - name: Commit generated transcript (if changed) |
| 31 | + run: | |
| 32 | + if [ -z "$(git status --porcelain)" ]; then |
| 33 | + echo "No changed files. Skipping commit." |
| 34 | + else |
| 35 | + echo "Files changed." |
| 36 | + git add . |
| 37 | + git commit -m 'Add ${{ github.event.issue.title }} transcript' |
| 38 | + echo "TRANSCRIPT_GENERATED=true" >> $GITHUB_ENV |
| 39 | + fi |
| 40 | + - name: Create Pull Request |
| 41 | + if: env.TRANSCRIPT_GENERATED == 'true' |
| 42 | + uses: peter-evans/create-pull-request@v7 |
| 43 | + with: |
| 44 | + commit-message: Add ${{ github.event.issue.title }} transcript |
| 45 | + title: Add ${{ github.event.issue.title }} transcript |
| 46 | + branch: generate-meeting-transcript |
| 47 | + branch-suffix: timestamp |
| 48 | + author: ESLint Bot <eslint[bot]@users.noreply.github.com> |
| 49 | + committer: ESLint Bot <eslint[bot]@users.noreply.github.com> |
| 50 | + body: | |
| 51 | + Add ${{ github.event.issue.title }} transcript. |
| 52 | +
|
| 53 | + This PR is autogenerated by the "Generate Transcript" GitHub Action. |
0 commit comments