Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
yuudi committed Dec 27, 2020
1 parent 0912181 commit fbdb55d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/gocqhttp-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ jobs:

- name: Fecth latest gocqhttp version
id: fetch_version
run: python3 gocqhttp/fetch-latest.py
run: |
tagname="$(curl -sL https://api.github.com/repos/Mrs4s/go-cqhttp/releases | jq -r '.[0].tag_name')"
echo ::set-output name=version::${tagname:1}
- name: Download latest gocqhttp
run: |
wget https://github.com/Mrs4s/go-cqhttp/releases/download/v${{ steps.fetch_version.outputs.version }}/go-cqhttp-v${{ steps.fetch_version.outputs.version }}-linux-amd64.tar.gz
wget -q https://github.com/Mrs4s/go-cqhttp/releases/download/v${{ steps.fetch_version.outputs.version }}/go-cqhttp-v${{ steps.fetch_version.outputs.version }}-linux-amd64.tar.gz
tar zxf go-cqhttp-v${{ steps.fetch_version.outputs.version }}-linux-amd64.tar.gz
- name: Build go-cqhttp image
Expand Down
7 changes: 0 additions & 7 deletions gocqhttp/fetch-latest.py

This file was deleted.

4 changes: 2 additions & 2 deletions hoshinobot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM alpine/git AS downloader

RUN git clone https://github.com/Ice-Cirno/HoshinoBot.git /tmp/HoshinoBot --depth=1 \
&& wget https://download.yobot.win/hoshinobot/res.tar.gz -O res.tar.gz \
&& wget -q https://disk.yobot.xyz/auto/hoshinobot/res.tar.gz -O res.tar.gz \
&& tar zxf res.tar.gz -C /tmp \
&& wget https://download.yobot.win/hoshinobot/ttc.tar.gz -O ttc.tar.gz \
&& wget -q https://disk.yobot.xyz/auto/hoshinobot/ttc.tar.gz -O ttc.tar.gz \
&& mkdir /tmp/chinese \
&& tar zxf ttc.tar.gz -C /tmp/chinese

Expand Down

0 comments on commit fbdb55d

Please sign in to comment.