瀏覽代碼

fix: do not run aur update if workflows failed

Almamu 2 年之前
父節點
當前提交
861a64df63
共有 1 個文件被更改,包括 6 次插入 和 2 次删除
  1. 6 2
      .github/workflows/arch.yml

+ 6 - 2
.github/workflows/arch.yml

@@ -1,15 +1,19 @@
 name: Arch Linux AUR Package Update
 
 on:
-  push:
-    branches: ["main"]
+  workflow_run:
+    workflows: [cmake]
+    branches: [main]
+    types: [completed]
 
 jobs:
   publish:
     runs-on: ubuntu-latest
     steps:
+
       - name: Checkout
         uses: actions/checkout@v2
+      - uses: ahmadnassri/action-workflow-run-wait@v1
 
       - name: Publish parallel-disk-usage to the AUR
         uses: KSXGitHub/github-actions-deploy-aur@v2.7.1