diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index 495e95e477e2..c9f79064019d 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -18,5 +18,6 @@ jobs: uses: actions/checkout@v3 with: token: ${{ secrets.BITNAMI_BOT_SECRET }} + fetch-depth: 0 - name: Fetch run: ./scripts/fetch-commits.sh ${{ github.event.inputs.shift }} diff --git a/scripts/fetch-commits.sh b/scripts/fetch-commits.sh index d0a11eb835ac..ce7c92ed4b56 100755 --- a/scripts/fetch-commits.sh +++ b/scripts/fetch-commits.sh @@ -62,7 +62,7 @@ function findCommitsToSync() { # Search on the container origin repo the ID for the latest commit we have locally in the container folder local -r last_synced_commit_id="$(git rev-list "$origin_name"/master --grep="${last_commit_message}")" local commits_to_sync="" - local max=20 # If we need to sync more than 20 commits there must be something wrong since we run the job on a daily basis + local max=100 # If we need to sync more than 100 commits there must be something wrong since we run the job on a daily basis for commit in "${commits[@]}"; do if [[ "$commit" != "$last_synced_commit_id" ]] && [[ "$max" -gt "0" ]]; then commits_to_sync="${commit} ${commits_to_sync}"