Skip to content

Commit

Permalink
ファイル削除処理の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kannoixia committed Jul 9, 2024
1 parent 7dc097a commit 1c966bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 61 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/auto_translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
API_KEY: ${{ secrets.API_KEY }}
run: node auto_translate/translate/translate.js

- name: Remove translate_files_path.txt
run: |
rm auto_translate/translate_files_path/translate_files_path.txt
# 変更内容のadd、commit、push処理
- name: Configure Git
run: |
Expand Down
4 changes: 0 additions & 4 deletions auto_translate/translate/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ async function main() {
for (const filePath of filePaths) {
translateFile(filePath.trim())
}

// ファイル削除処理
await unlink(changedFilesPath)
console.log('ファイルが正常に削除されました')
} catch (err) {
console.error(
chalk.red('Error reading translate_files_path.txt:', err.message)
Expand Down
57 changes: 0 additions & 57 deletions docs/app-router/test_file.md

This file was deleted.

0 comments on commit 1c966bd

Please sign in to comment.