Skip to content

Commit

Permalink
Merge pull request #40 from Guovin/dev
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
Guovin authored Mar 30, 2024
2 parents c2475c9 + 3db90b2 commit eb5d40b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ jobs:
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- name: Set final file name
id: set_final_file_name
run: |
echo "::set-output name=final_file::$(python -c 'try: import user_config as config; except ImportError: import config as config; print(config.final_file)')"
- name: Install pipenv
run: pip3 install --user pipenv
- name: Install dependecies
Expand All @@ -54,9 +48,14 @@ jobs:
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git diff
file="${{ steps.set_final_file_name.outputs.final_file }}"
if [[ -f "$file" ]]; then
git add ${{ steps.set_final_file_name.outputs.final_file }}
final_file=$(python -c '
try:
import user_config as config
except ImportError:
import config
print(config.final_file)')
if [[ -f "$final_file" ]]; then
git add "$final_file"
fi
if [[ -f user_result.log ]]; then
git add user_result.log
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@

## v1.0.0

### 2024/3/30

- 修复工作流读取配置与更新文件对比问题

---

- Fix the issue of workflow reading configuration and comparing updated files

### 2024/3/29

- 修复用户专属配置更新结果失败

---

- Fixed user specific configuration update failure
- Fix user specific configuration update failure

### 2024/3/26

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try:
import user_config as config
except ImportError:
import config as config
import config
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try:
import user_config as config
except ImportError:
import config as config
import config
import aiohttp
import asyncio
import time
Expand Down

0 comments on commit eb5d40b

Please sign in to comment.