-
-
Notifications
You must be signed in to change notification settings - Fork 3
How to use Github Action as your free & no code Medium Posts backup service
ZhgChgLi edited this page Nov 24, 2023
·
4 revisions
- Free: About billing for GitHub Actions
- Unlimited storage
- Version control of backup posts
- No Code, no need to know how to coding
- No Local Environment Requirement, no matter what is your computer environment, you can also use this on your smartphone :)
Step 1. Creating a new Github Repo
- Repository name: Enter the name which you want
- Public or Private: everyone can see your repo if you set it to public
- Click Actions on top menu
- Click set up a workflow yourself
- (optional) Replace file name to
ZMediumToMarkdown.yml
- Replace the entire content to:
name: ZMediumToMarkdown
on:
workflow_dispatch:
schedule:
- cron: "10 1 15 * *" # At 01:10 on day-of-month 15. (once a month)
jobs:
ZMediumToMarkdown:
runs-on: ubuntu-latest
steps:
- name: ZMediumToMarkdown Automatic Bot
uses: ZhgChgLi/ZMediumToMarkdown@main
with:
command: '-u YourMediumUserName'
- YourMediumUserName: replace to the Medium's username you want to backup (or ref here to know others command)
- cron: enter the schedule backup time when you want (Expressions Tool)
- Click Start Commit button on the right-top and Click Commit New File
- File Commit (Saved) Success!
Settings -> Actions -> General -> Workflow Permissions -> Read and write permissions -> ✅
- Click Actions on top menu
- Click the Action which you just created:
ZMediumToMarkdown
- Click Run workflow button on the top-right
- Click Run workflow button
- Refresh Page until the job is showing
- Click into
ZMediumToMarkdown
job to know current backup process - Waiting download process (I have 65 posts and take about 10 minutes to download)
- You'll see Succes Status if finished downloading
- Click Code on top menu
- Click Output Folder
Make Sure the backup job in action is finished & successful, or you won't see any output result.
- All set!
- Click Actions on top menu
- Click the Action which you just created:
ZMediumToMarkdown
- Click ... button on top-right
- Click Disable workflow
- auto-backup job will be suspended
- Click Actions on top menu
- Click the Action which you just created:
ZMediumToMarkdown
- Click action file ZMediumToMarkdown.yml on top-left
- Click Pen Icon button on top-right
- ref Creating an Action up above
https://github.com/ZhgChgLi/ZMediumToMarkdown-github-action
remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/zhgtest/test-init/': The requested URL returned error: 403
Error: Invalid status code: 128
at ChildProcess.<anonymous> (/home/runner/work/_actions/stefanzweifel/git-auto-commit-action/v4/index.js:17:19)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1100:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) {
code: 128
}
Error: Invalid status code: 128
at ChildProcess.<anonymous> (/home/runner/work/_actions/stefanzweifel/git-auto-commit-action/v4/index.js:17:19)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1100:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
Please follow step 2-1 and retry running github action.