Skip to content

Commit

Permalink
Chore: automate generation of meeting transcripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Jul 2, 2020
1 parent a0d175d commit c21d51d
Show file tree
Hide file tree
Showing 5 changed files with 445 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/generate-transcript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- 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'
git push "https://$GH_TOKEN@github.com/eslint/tsc-meetings.git" master
fi
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
348 changes: 348 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c21d51d

Please sign in to comment.