summaryrefslogtreecommitdiffstats
path: root/roles/caption/templates/update-task-status.sh
blob: 18b7c1b974acca5ab51c25b85e8c40e575eb6843 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# {{ ansible_managed }}
SLUG="$1"
FROM_STATUS="$2"
TO_STATUS="$3"
cd ~/emacsconf-2022-private
git pull
emacsclient --eval "(progn (emacsconf-update-talk-status \"$SLUG\" \"$FROM_STATUS\" \"$TO_STATUS\") (emacsconf-with-talk-heading \"$SLUG\" (emacsconf-cache-video-data (emacsconf-get-talk-info-for-subtree)) (save-buffer)))"
git commit -m "Update task status for $SLUG" conf.org
git push