This action does the following:
To use this action in your Jekyll blog post repository, you need to do the following:
.github/workflows
folder to your repositorydev-to-jekyll.yml
file in the foldername: Convert DEV Posts to Jekyll Markdown
on:
schedule:
# At midnight twice a week on Monday and Thursday
- cron: '0 0 * * 1,4'
jobs:
dev-to-jekyll:
runs-on: ubuntu-latest
steps:
- name: dev-to-jekyll
uses: bencgreenberg/dev-posts-to-jekyll-markdown-action@main
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
DEV_API_KEY: "${{ secrets.DEV_API_KEY }}"
NUM_OF_POSTS: "${{ secrets.NUM_OF_POSTS }}"
DEV_API_KEY
(Your API key from DEV.to)REPO_OWNER
(The owner of the repository, i.e. "jane")REPO
(Your repository name, i.e. "sample-repository")We welcome contributions! Please follow the GitHub flow when introducing changes. If it recommended to open an Issue first, so it can be discussed and collaborated on before you start working on what you plan.
This project is under the MIT License.