add fetch-depth: 0

Getting this error

changecalc/changecalc > changed-packages.txt || echo "./..." > changed-packages.txt
fatal: bad revision 'main'
failed to execute [git diff main --name-only -- .]: exit status 128

https://stackoverflow.com/a/76769122
This commit is contained in:
Denis Bilenko 2024-12-06 16:57:19 +01:00
parent d90d19790d
commit ce6883001e
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ jobs:
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5