Skip to content

Commit

Permalink
fix: import config and diff to add
Browse files Browse the repository at this point in the history
  • Loading branch information
Guovin committed Mar 30, 2024
1 parent 14e255b commit cbd67ca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ jobs:
- name: Set final file name
id: set_final_file_name
run: |
python -c 'try: import user_config as config; except ImportError: import config; print(config.final_file)'
echo "::set-output name=final_file::$(python -c 'try: import user_config as config; except ImportError: import config; print(config.final_file)')"
echo "::set-output name=final_file::$(python -c '
try:
import user_config as config
except ImportError:
import config
print(config.final_file)')"
- name: Commit and push if changed
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
Expand All @@ -56,7 +60,6 @@ jobs:
final_file="${{ steps.set_final_file_name.outputs.final_file }}"
if [[ -f "$final_file" ]]; then
git add "$final_file"
echo "File added"
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

0 comments on commit cbd67ca

Please sign in to comment.