diff --git a/cmd/konflux/templates/github/workflows/update-sources-branches.yaml b/cmd/konflux/templates/github/workflows/update-sources-branches.yaml index 6f6111f..9042831 100644 --- a/cmd/konflux/templates/github/workflows/update-sources-branches.yaml +++ b/cmd/konflux/templates/github/workflows/update-sources-branches.yaml @@ -46,6 +46,7 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com git checkout -b actions/update/sources-{{"${{matrix.branch}}"}} + git --git-dir=upstream/.git fetch -p --all git --git-dir=upstream/.git diff --stat HEAD..$(cat head) > /tmp/diff.txt git --git-dir=upstream/.git rev-parse HEAD > head rm -rf upstream/.git diff --git a/cmd/konflux/templates/github/workflows/update-sources.yaml b/cmd/konflux/templates/github/workflows/update-sources.yaml index 3a5a8b2..7e77fed 100644 --- a/cmd/konflux/templates/github/workflows/update-sources.yaml +++ b/cmd/konflux/templates/github/workflows/update-sources.yaml @@ -25,10 +25,10 @@ jobs: - name: Commit new changes run: | - ls upstream/ git config user.name github-actions git config user.email github-actions@github.com git checkout -b actions/update/sources-main + git --git-dir=upstream/.git fetch -p --all git --git-dir=upstream/.git diff --stat HEAD..$(cat head) > /tmp/diff.txt git --git-dir=upstream/.git rev-parse HEAD > head rm -rf upstream/.git