Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 0 additions & 82 deletions .github/workflows/create-meeting-artifacts-manual.yml

This file was deleted.

82 changes: 0 additions & 82 deletions .github/workflows/create-meeting-artifacts-scheduled.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/create-meeting-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Create Meeting Artifacts

on:
workflow_dispatch:
inputs:
meeting_group:
description: 'Meeting group to create artifacts for'
required: true
type: string
dry_run:
type: boolean
description: 'Dry run?'
default: false
required: true
workflow_call:
inputs:
meeting_group:
description: 'Meeting group to create artifacts for'
required: true
type: string
dry_run:
type: boolean
description: 'Dry run?'
default: false
required: true

env:
GROUP: ${{ github.event.inputs.meeting_group }}

jobs:
create-artifacts:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Read Meeting Variables
id: read-vars
run: echo "user=$(jq -r '.github.owner' "configs/$GROUP.json")" >> $GITHUB_OUTPUT

- name: Create GitHub App Token
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: app-token
with:
app-id: ${{ secrets.BOT_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
owner: ${{ steps.read-vars.outputs.user }}

- name: Create meeting artifacts
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
HACKMD_API_TOKEN: ${{ secrets.HACKMD_API_TOKEN }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
run: npx . $GROUP ${{ github.event.inputs.dry_run && '--dry-run' }}
38 changes: 38 additions & 0 deletions .github/workflows/scheduled-create-meeting-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Create Meeting Artifacts (Scheduled)

on:
workflow_dispatch:
inputs:
dry_run:
type: boolean
description: 'Dry run?'
default: false
required: true
schedule:
- cron: '0 10 * * 1'

jobs:
create-matrix:
runs-on: ubuntu-latest
outputs:
groups: ${{ steps.set-matrix.outputs.configs }}
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Get config basenames
id: set-matrix
run: |
CONFIGS=$(find configs/ -maxdepth 1 -type f -name '*.json' -exec basename {} .json \; | jq -R -s -c 'split("\n")[:-1]')
echo "configs=$CONFIGS" >> $GITHUB_OUTPUT

create-artifacts:
needs: create-matrix
strategy:
fail-fast: false
matrix:
groups: ${{ fromJson(needs.create-matrix.outputs.groups) }}
uses: ./.github/workflows/create-meeting-artifacts.yml
with:
meeting_group: ${{ matrix.groups }}
dry_run: ${{ github.event.inputs.dry_run }}
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
templates/
template.mustache
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Michael Dawson <mdawson@devrus.com>
Claudio Wunder <cwunder@gnome.org>
Aviv Keller <me@aviv.sh>
Loading
Loading