Ver Fonte

fix(ci): no cache and enable run manually for branches.yml

Hintay há 9 meses atrás
pai
commit
2a03eb7740
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      .github/workflows/branches.yml

+ 2 - 2
.github/workflows/branches.yml

@@ -1,6 +1,7 @@
 name: Synchronize Branches
 
 on:
+  workflow_dispatch:
   pull_request:
     branches:
       - 'dev'
@@ -12,7 +13,7 @@ on:
 jobs:
   weblate:
     runs-on: ubuntu-latest
-    if: github.event.pull_request.merged == true || github.event.action == 'published'
+    if: github.event.pull_request.merged == true || github.event.action == 'published' || github.event_name == 'workflow_dispatch'
     steps:
       - name: Checkout
         uses: actions/checkout@v4
@@ -21,7 +22,6 @@ jobs:
         uses: actions/setup-python@v5
         with:
           python-version: '3.10'
-          cache: pip
 
       - name: Install wlc
         run: pip install wlc