浏览代码

Only run target branch check on HaxeFoundation/haxe (#12184)

Zeta 3 月之前
父节点
当前提交
a093fdcd76
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      .github/workflows/target.yml

+ 2 - 1
.github/workflows/target.yml

@@ -8,12 +8,13 @@ on:
       - edited
 jobs:
   check-branches:
+    if: github.repository == 'HaxeFoundation/haxe'
     runs-on: ubuntu-latest
     steps:
       - name: Check branches
         run: |
           if [ ${{ github.base_ref }} != "development" ]; then
-            echo "Merge requests should target `development`."
+            echo "Merge requests should target development."
             exit 1
           fi