浏览代码

[ci] Only run autosquash on PR not coming from a Fork (#1916)

- [ci] Refactor stale yml into issue and PR sections
- [ci] Only run autosquash on PR not coming from a Fork
Romain Rigaux 4 年之前
父节点
当前提交
435aa613c8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .github/workflows/autosquash.yml

+ 1 - 1
.github/workflows/autosquash.yml

@@ -21,7 +21,7 @@ jobs:
   autosquash:
     name: Autosquash
     runs-on: ubuntu-18.04
-    if: github.repository == 'cloudera/hue'
+    if: github.event.pull_request.head.repo.full_name == github.repository
     steps:
       - uses: tibdex/autosquash@v2
         with: