File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 36
36
37
37
- name : Fetch Kobo wishlist data
38
38
id : fetch
39
- continue-on-error : true
40
39
run : |
41
40
output=$(deno run --allow-net --allow-read --allow-env ./script/fetch-kobo-wishlist.ts)
42
- ec=$?
43
- echo "exit_code=$ec" >> $GITHUB_OUTPUT
44
41
echo "output<<EOF" >> $GITHUB_OUTPUT
45
42
echo "$output" >> $GITHUB_OUTPUT
46
43
echo "EOF" >> $GITHUB_OUTPUT
@@ -54,11 +51,14 @@ jobs:
54
51
if [[ -n "${{ steps.fetch.outputs.output }}" ]]; then
55
52
echo "${{ steps.fetch.outputs.output }}" >> "${{ env.READING_LIST_PATH }}"
56
53
echo "Successfully updated reading list"
54
+ echo "changes_made=true" >> $GITHUB_OUTPUT
57
55
else
58
56
echo "No new items to add. Output: ${{ steps.fetch.outputs.output }}"
57
+ echo "changes_made=false" >> $GITHUB_OUTPUT
59
58
fi
60
59
61
60
- name : Commit and push changed files
61
+ if : steps.process.outputs.changes_made == 'true'
62
62
# Pull first, since something could've been pushed in-between.
63
63
run : |
64
64
git pull
You can’t perform that action at this time.
0 commit comments