mirror of
https://github.com/taixingyiji/openit.git
synced 2025-10-30 00:52:16 +00:00
27 lines
881 B
YAML
27 lines
881 B
YAML
name: Reuse
|
||
on:
|
||
push:
|
||
paths:
|
||
- 'url'
|
||
workflow_dispatch:
|
||
jobs:
|
||
bf-job:
|
||
name: Reuse
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- uses: actions/checkout@v3
|
||
- name: Timezone
|
||
run: sudo timedatectl set-timezone 'Asia/Shanghai'
|
||
- name: git init
|
||
run: |
|
||
git config --local user.name "GitHub Actions"
|
||
git config --local user.email "actions@github.com"
|
||
- name: pool
|
||
run: | #sed -n '/:\/\//p' bot >> ./openit/url #提取bot文本中符合行中有://字符的行追加到url文本结尾
|
||
sed -i 's/^[ \t]*//g' url #删除行头空格和tab,对齐行头
|
||
sed -i '/^sub:/d' url #删除以sub:开头的行
|
||
sed -i '/^$/d' url #删除空白行
|
||
sed -i -r '/^\s*$/d' url #删除带有空格或制表符的空行
|
||
base64 ./url > ./utils/pool/pool -w 0
|
||
- run: ./.github/update-repo.sh
|