-
Notifications
You must be signed in to change notification settings - Fork 24
47 lines (44 loc) · 1.47 KB
/
generate_minutes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Generate minutes
on:
repository_dispatch:
types: generate_minutes
jobs:
download-minutes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup custom environment variables
run: git config --global push.default simple && git config --global user.email "[email protected]" && git config --global user.name "W3C CCG"
- name: Pull raw meeting log file
id: pull_raw_file
env:
DATE: ${{ github.event.client_payload.date }}
GROUP: ${{ github.event.client_payload.groupName }}
GROUP_ALIAS: ${{ github.event.client_payload.groupAlias }}
run: |
export DIR=${DATE}
if [ ! -z "$GROUP_ALIAS" ];then
export DIR=${DIR}-${GROUP_ALIAS}
fi
bash ./download-minutes.sh
cp ${DIR}/irc-raw.log ${DIR}/irc.log
echo "##[set-output name=date;]${DATE}"
echo "##[set-output name=group;]${GROUP}"
echo "##[set-output name=dir;]${DIR}"
shell: bash
- name: Generate html minutes
id: generate_html_minutes
run: |
cd scribe-tool/
npm install
cd ..
bash ./generate-html.sh
env:
CI: true
DATE: ${{ steps.pull_raw_file.outputs.date }}
DIR: ${{ steps.pull_raw_file.outputs.dir}}
GROUP: ${{ steps.pull_raw_file.outputs.group }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Add minutes for telecon [ci skip]
branch: main