Git in CI pipelines
Në shqip: Git-i në pipeline-t CI
ShpjegimiSQ
Në CI, repo-ja zakonisht klonohet e cekët (fetch-depth: 1) për shpejtësi. Po të duhet historia (për changelog ose versione nga tag-et), vendos fetch-depth: 0. Kujdes me lejet e token-it që përdor CI-ja.
EnglishEN
In CI, the repo is usually cloned shallow (fetch-depth: 1) for speed. If you need history (for changelogs or versions from tags), set fetch-depth: 0. Mind the permissions of the token CI uses.
Si ta mendosh
Si të marrësh vetëm faqen e fundit të ditarit, ose gjithë ditarin kur të duhet.
Lexoje në anglisht
Like taking only the diary's last page, or the whole diary when you need it.
Shembull kodiyaml
- uses: actions/checkout@v4
with: { fetch-depth: 0 }