tenseleyflow/shithub / 138c588

Browse files

deploy: fetch-depth=0 in checkout so the mirror push can prove ancestry

Authored by espadonne
SHA
138c588a533aeb6e49f64a7d6bca969c7f091043
Parents
7947046
Tree
f2131e6

1 changed file

StatusFile+-
M .github/workflows/deploy.yml 7 0
.github/workflows/deploy.ymlmodified
@@ -26,6 +26,13 @@ jobs:
2626
     environment: production
2727
     steps:
2828
       - uses: actions/checkout@v4
29
+        with:
30
+          # Full history so the Mirror-to-shithub.sh step can prove
31
+          # ancestry against whatever the mirror's tip is. Default
32
+          # depth=1 makes any push that isn't the very first commit
33
+          # fail "non-fast-forward" because the runner can't see
34
+          # the parent chain.
35
+          fetch-depth: 0
2936
 
3037
       - uses: actions/setup-go@v5
3138
         with: