Explorar o código

[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 %!s(int64=4) %!d(string=hai) anos
pai
achega
435aa613c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: