Skip to content

Commit 8b201eb

Browse files
committed
🐛 fix: change the place to save changed_files.txt
1 parent 4f61562 commit 8b201eb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ runs:
3535
- name: Get changed markdown files
3636
id: files
3737
run: |
38-
git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep "^articles/.*\.md$" > changed_files.txt
38+
git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep "^articles/.*\.md$" > $GITHUB_WORKSPACE/changed_files.txt
3939
echo "Changed markdown files:"
40-
cat changed_files.txt
40+
cat $GITHUB_WORKSPACE/changed_files.txt
4141
continue-on-error: true
4242
shell: bash
4343

4444
- name: Convert Zenn articles to Qiita format
4545
run: |
46-
for file in $(cat changed_files.txt); do
46+
for file in $(cat $GITHUB_WORKSPACE/changed_files.txt); do
4747
bash bin/ztoq.sh "$file"
4848
done
4949
shell: bash
@@ -52,7 +52,6 @@ runs:
5252

5353
- name: Commit converted Qiita articles
5454
run: |
55-
rm changed_files.txt
5655
git config --local user.name ${{ github.actor }}
5756
git config --local user.email ${{ github.actor }}@users.noreply.github.com
5857
git add qiita/public/*.md

0 commit comments

Comments
 (0)