We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e806c2c commit cd7c323Copy full SHA for cd7c323
.github/workflows/cron-wishlist.yml
@@ -38,8 +38,16 @@ jobs:
38
run: |
39
output=$(deno run --allow-net --allow-read --allow-env ./script/fetch-kobo-wishlist.ts)
40
ec=$?
41
- [[ $ec -eq 0 && -n "$output" ]] && \
42
- echo "$output" >> "$reading_list" || ([[ $ec -eq 10 ]] && echo "$output")
+ if [[ $ec -eq 0 && -n "$output" ]]; then
+ echo "$output" >> "$reading_list"
43
+ exit 0
44
+ elif [[ $ec -eq 10 ]]; then
45
+ echo "$output"
46
+ exit 0 # Explicitly exit with success code
47
+ else
48
+ echo "Error: Unexpected exit code $ec"
49
+ exit $ec # Pass through any unexpected error codes
50
+ fi
51
env:
52
reading_list: ${{ env.READING_LIST_PATH }}
53
KOBO_ACCESS_TOKEN: ${{ secrets.KOBO_ACCESS_TOKEN }}
0 commit comments