TSC meeting 28-December-2023 #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate TSC Meeting Transcript | |
on: | |
issues: | |
types: [closed] | |
jobs: | |
generate-trancript: | |
runs-on: ubuntu-latest | |
if: contains(github.event.issue.labels.*.name, 'tsc meeting') | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: npm install | |
- name: Generate transcript | |
run: npm run generate:transcript | |
env: | |
TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} | |
ID: ${{ secrets.DISCORD_CHANNEL_ID }} | |
ISSUE_TITLE: ${{ github.event.issue.title }} | |
- name: Configure Git identity | |
run: | | |
git config user.email "eslint[bot]@users.noreply.github.com" | |
git config user.name "ESLint Bot" | |
- name: Commit generated transcript (if changed) | |
run: | | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "No changed files. Skipping commit." | |
else | |
echo "Files changed." | |
git add . | |
git commit -m 'Add ${{ github.event.issue.title }} transcript' | |
echo "TRANSCRIPT_GENERATED=true" >> $GITHUB_ENV | |
fi | |
- name: Create Pull Request | |
if: env.TRANSCRIPT_GENERATED == 'true' | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
commit-message: Add ${{ github.event.issue.title }} transcript | |
title: Add ${{ github.event.issue.title }} transcript | |
branch: generate-meeting-transcript | |
branch-suffix: timestamp | |
author: ESLint Bot <eslint[bot]@users.noreply.github.com> | |
committer: ESLint Bot <eslint[bot]@users.noreply.github.com> | |
body: | | |
Add ${{ github.event.issue.title }} transcript. | |
This PR is autogenerated by the "Generate Transcript" GitHub Action. | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |