-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
104 additions
and
29 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
|
||
# number: 문제 id를 숫자로 작성 | ||
# categories : 해당 문제의 유형을 ,로 구분하여 작성 | ||
# tags : 해당 문제의 태그를 ,로 구분하여 작성 | ||
# time : 해당 문제 풀이에 걸린 시간을 분단위 숫자로 작성 | ||
# try : 해당 문제에 몇번의 시도를 했는지 숫자로 작성 | ||
# help: 해당 문제에 외부의 도움을 받았는지 true/false로 작성 | ||
# url : 해당 문제의 url을 작성 | ||
number: | ||
categories: [] | ||
tags: [] | ||
time: | ||
try: | ||
help: false | ||
url: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: algorithmAutoSorterTest | ||
on: | ||
push: | ||
branches: [ test ] | ||
|
||
jobs: | ||
uploadToNotion: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install dependency | ||
run: pip install -r requirements.txt | ||
|
||
- name: Check commit messages | ||
id: check_commit | ||
run: | | ||
if [[ $(git log -1 --pretty=format:%s) == *"solve"* ]]; then | ||
echo "is_solve=true" >> $GITHUB_ENV | ||
else | ||
echo "is_solve=false" >> $GITHUB_ENV | ||
fi | ||
- name: sort-and-upload-request | ||
if: env.is_solve == 'true' | ||
env: | ||
REQUEST_URL: ${{ secrets.REQUEST_URL}} | ||
COMMIT_MSG: ${{github.event.head_commit.message}} | ||
COMMIT_PATTERN: ${{vars.COMMIT_PATTERN}} | ||
run: python requestNotionUpload.py |
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