From becf87c76294f689787519edc6982d75dd661f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8E=BB=E5=B9=B4=E5=A4=8F=E5=A4=A9?= Date: Thu, 5 Jan 2023 09:33:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0actions=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E6=8C=89=E9=92=AE=E5=8F=8Apython=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA3.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1、给Workflow增加手动的执行按钮,不再需要通过提交commit来触发actions执行。 2、原python3.6环境执行会报错,更改为3.8环境。 --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9558a803..1d74a32d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,6 +6,7 @@ on: - main schedule: - cron: '5 16,22 * * *' + workflow_dispatch: jobs: tieba_sign: @@ -16,7 +17,7 @@ jobs: - name: 'Set python' uses: actions/setup-python@v1 with: - python-version: '3.6' + python-version: '3.8' - name: 'Install dependencies' run: python -m pip install --upgrade requests - name: 'Start Sign' From 339294dbc9be463e4e6430e24fbe0667b5a3b756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8E=BB=E5=B9=B4=E5=A4=8F=E5=A4=A9?= Date: Thu, 5 Jan 2023 09:54:04 +0800 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1d74a32d..8c6a2a72 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: - name: 'Set python' uses: actions/setup-python@v1 with: - python-version: '3.8' + python-version: '3.10' - name: 'Install dependencies' run: python -m pip install --upgrade requests - name: 'Start Sign'