Skip to content

camphor-/advent

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

advent

GitHub Actions

CAMPHOR- Advent Calendar

Requirements

  • Docker
  • docker-compose

Edit

  1. Edit data/authors.yml
  2. Edit data/entries.yml

If author, title, or url of an entry is not decided, set null.

Compile & Development

  1. Run docker-compose up -d
  2. Open http://localhost:8000

Generate Tweet & Post

Tweet:

$ docker-compose exec advent python -m advent.twitter
OR
$ docker-compose exec advent python -m advent.twitter YYYY-MM-DD

Facebook Post (一部):

$ cat data/entries.yml | sed -E "s;- date: [0-9]{4}-([0-9]{2})-([0-9]{2});\1/\2;" | sed -E "s;  author: (.*)$;  \1 による;" | sed -E "s;  title: (.*)$;  「\1」;" | sed -E "s;  url: (.*)$;  \1;"