This project is a template project to help solve various algorithm problems.
- Auto commit
- Auto Notion post
-
Fork this repository
-
From your new fork, go to Settings > Secrets
-
Add the following secret using the New secret button:
- NOTION_TOKEN: Token for using Notion API
- DATABASE_ID: The database ID of the Notion to record the problem solving.
- NOTION_SELF_ID: The personal ID of the Notion to record the problem solving.
-
Go to the Actions tab of your fork and click the "enable" button
-
Check the "Read repository content and packages permissions" in Settings > Actions > General > Workflow permissions
-
Create a new repo using your fork
- first, start your repo that created
- second, try this command
git remote add upstream [fork repo url] git fetch --all git pull upstream [your branch]
- When merging the template repo into your existing repo, conflicts may arise. We recommend creating a local branch that tracks the upstream and merging the changes locally to resolve any conflicts
- After solving the beakjoon problem, save the code inside the beakjoon folder.
- Set the file name to the name that contains the problem number.
- Run "python autoCommit.py"
- Check the commit history.
- After SetUp, this workflow runs only when the push event that commits the file is in the "beakjoon" folder.
- Check Notion