This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
convert-blogpost-to-xml #1653
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Run jekyll2cms in a Docker container to convert the new blogpost into XML | |
name: convert-blogpost-to-xml | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 1 * * *' | |
jobs: | |
pull-and-run-jekyll2cms-docker-image: | |
if: github.repository == 'adessoSE/devblog' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Pull Docker image | |
run: docker pull jekyll2cms/jekyll2cms:2.2.0 | |
- name: Run Docker image | |
run: docker run --env REPOSITORY_REMOTE_URL='${{ secrets.REPOSITORY_REMOTE_URL }}' --env REPOSITORY_LOCAL_USER_NAME='${{ secrets.REPOSITORY_LOCAL_USER_NAME }}' --env REPOSITORY_LOCAL_USER_MAIL='${{ secrets.REPOSITORY_LOCAL_USER_MAIL }}' --env REPOSITORY_LOCAL_USER_TOKEN='${{ secrets.REPOSITORY_LOCAL_USER_TOKEN }}' jekyll2cms/jekyll2cms:2.2.0 |