From e42e9b443c75d5ac4816fb95ee92fc4933ac7b8f Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Tue, 12 Sep 2023 13:06:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=88=E6=9C=AC=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3981fd4..2f0fd5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,17 +9,6 @@ on: pull_request: jobs: - check_version: - name: check version - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Check whether the GITHUB release matches the package version - uses: samuelcolvin/check-python-version@v4 - with: - version_file_path: httpfpt/__init__.py - lint: runs-on: ubuntu-latest name: lint ${{ matrix.python-version }} @@ -51,3 +40,28 @@ jobs: with: project: . verbose: true + + # https://github.com/re-actors/alls-green + check: + name: check the status of other workflow jobs + runs-on: ubuntu-latest + if: always() + needs: [ lint ] + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} + + check-version: + name: check version + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + needs: [ check ] + steps: + - uses: actions/checkout@v3 + + - name: Check whether the GITHUB release matches the package version + uses: samuelcolvin/check-python-version@v4 + with: + version_file_path: httpfpt/__init__.py