From 4cdf8b6970a853812aff28014cd45c21f3bdcd7f Mon Sep 17 00:00:00 2001 From: Mist Date: Sat, 6 Apr 2024 00:43:50 +0800 Subject: [PATCH] [Fix] remove the wait for action --- .github/workflows/build.yaml | 6 +++--- .github/workflows/release.yml | 19 ++++--------------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3028b5d..f366e48 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,11 +1,11 @@ name: Build on: - push: + push: paths: - generator/** + project.toml branches: - - main + - main permissions: contents: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b328445..a9caa7c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,10 @@ name: Release on: - push: - paths: - project.toml - branches: - - main + workflow_run: + workflows: [build] + types: + - completed permissions: contents: write @@ -14,16 +13,6 @@ jobs: release: runs-on: ubuntu-latest steps: - - name: Wait for build workflow to succeed - uses: lewagon/wait-on-check-action@v1.3.4 - with: - ref: ${{ github.ref }} - check-regexp: 'with rust' - repo-token: ${{ secrets.GITHUB_TOKEN }} - wait-interval: 10 - allowed-conclusions: success,skipped,cancelled - - - name: Checkout uses: actions/checkout@v4 with: