From ce6883001e10881e89fc6c2814ea77801fd4489e Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Fri, 6 Dec 2024 16:57:19 +0100 Subject: [PATCH] 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 --- .github/workflows/push.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c49adc6ca..3d60bd52f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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