From ecaa937b14ed14833300ced90154eafa335b4b29 Mon Sep 17 00:00:00 2001 From: catlair Date: Sat, 19 Jun 2021 23:09:35 +0800 Subject: [PATCH] feat: build test version --- .github/workflows/build-docker.yaml | 19 +++++++++++++++++-- .github/workflows/gh-release.yaml | 1 - CHANGELOG.md | 6 ++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index efbb045..6a95c4a 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -1,6 +1,11 @@ name: build docker on: workflow_dispatch: # 手动触发 + inputs: + docker_test: + description: '测试版本' + required: true + default: 'test' release: types: [published] jobs: @@ -15,7 +20,6 @@ jobs: - name: set Docker tag run: echo MY_TAGS=${{ github.ref }} | sed -e "s/refs\/tags\/v//g" >> $GITHUB_ENV - # 用上面的不用这 - name: Preparation run: | echo '"${{ env.MY_TAGS }}"' > src/config/level.json @@ -32,8 +36,19 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push + - name: Build and push for Test + id: docker_build_test + if: ${{ github.event.inputs.docker_test }} + uses: docker/build-push-action@v2 + with: + context: . + push: true + platforms: ${{ secrets.DOCKER_PLATFORMS || 'linux/amd64,linux/arm64' }} + tags: catlair/bilitaskpuppeteer:${{ github.event.inputs.docker_test }} + + - name: Build and push for Production id: docker_build + if: ${{ !github.event.inputs.docker_test }} uses: docker/build-push-action@v2 with: context: . diff --git a/.github/workflows/gh-release.yaml b/.github/workflows/gh-release.yaml index 5d0fa97..9a6c63b 100644 --- a/.github/workflows/gh-release.yaml +++ b/.github/workflows/gh-release.yaml @@ -24,7 +24,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: set Docker tag run: echo MY_TAGS=${{ github.ref }} | sed -e "s/refs\/tags\/v//g" >> $GITHUB_ENV - # 用上面的不用这 - name: Preparation run: | echo '"${{ env.MY_TAGS }}"' > src/config/level.json diff --git a/CHANGELOG.md b/CHANGELOG.md index c46342d..38c1ccd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,3 +3,9 @@ - 重命名一些 `config.json` 配置项 - `config.json` 增加 `cookie` 和 `targetLevel` 配置项 - 检测当前等级是否达到目标等级,从而确定是否取消投币 +- 缩短错误时输出内容长度 + +## Fixes + +- 用户信息显示错误 +- 去除单独的硬币数获取