Skip to content

Commit

Permalink
Update tg.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cmliu authored Jan 12, 2024
1 parent baa3727 commit 5a5d541
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/tg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ jobs:
- name: 执行推送
run: |
counter=0
while IFS= read -r line && [ "$counter" -lt 8 ]; do
head -n 8 addressesapi.txt > addressesapi_truncated.txt
while IFS= read -r line; do
ips+="$(echo "$line" | sed 's/#/, /g')"$'\n'
((counter++))
done < addressesapi.txt
done < addressesapi_truncated.txt
message="今日优选 For: ${{ steps.time.outputs.current_time }}
$ips
Expand Down

0 comments on commit 5a5d541

Please sign in to comment.