Skip to content

Commit

Permalink
Support XML-defined granular message options (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano authored Aug 14, 2022
1 parent 82d6f6a commit b1ebbc3
Show file tree
Hide file tree
Showing 7 changed files with 424 additions and 32 deletions.
21 changes: 16 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
FROM python:3
FROM python:3.10

COPY post_updater.py /bin/post_updater
COPY requirements.txt /tmp/requirements.txt
RUN chmod +x /bin/post_updater && pip install -r /tmp/requirements.txt
# Set Poetry Version
ENV POETRY_VERSION=1.1.13
# Install Poetry
RUN curl -sSL https://install.python-poetry.org | python3 - --version $POETRY_VERSION
# Add poetry install location to PATH
ENV PATH=/root/.local/bin:$PATH

CMD ["/bin/post_updater"]
RUN poetry config virtualenvs.create false
COPY poetry.lock pyproject.toml ./
RUN poetry install --no-root --no-dev

COPY post_updater.py /bin/post_updater.py

RUN chmod +x /bin/post_updater.py

CMD ["post_updater.py"]
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ inputs:
description: Discord Bot Token for Authentication
required: true
post_file:
description: Path to the file containing the post
required: true
description: Path to the file containing the raw post
required: false
post_xml:
description: Path to the file containing the XML specification for the post
required: false
discord_channel:
description: Discord Channel ID
required: true
Expand Down
207 changes: 207 additions & 0 deletions poetry.lock

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

Loading

0 comments on commit b1ebbc3

Please sign in to comment.