diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 412aaced..d4abbfd6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,8 @@ on: - "**" tags-ignore: - "*.*" + schedule: + - cron: "12 12 * * *" jobs: tests: @@ -26,9 +28,6 @@ jobs: id: buildx uses: docker/setup-buildx-action@v3 - - name: Touch .env - run: touch .env - - name: Download and start db containers run: make docker_dbs_setup_up diff --git a/scripts/gh_update_dbs_pr.sh b/scripts/gh_update_dbs_pr.sh index d5322efe..5f6f4a46 100755 --- a/scripts/gh_update_dbs_pr.sh +++ b/scripts/gh_update_dbs_pr.sh @@ -1,15 +1,17 @@ #!/bin/sh -DB_COMPOSE_FILE="docker/docker-compose.dbs.yml" +# To be run in github action update_compose_dbs.yml git config user.name "GitHub Actions Bot" git config user.email "<>" git status -DIFF=$(git diff origin/main $DB_COMPOSE_FILE) +DIFF=$(git diff origin/main) if [ "$DIFF" = "" ] then echo "no changes detected" else echo "file changed" + make tests_amd64 + echo "merge changes" timestamp=$(date +%s) branch="update-docker-compose-dbs-$timestamp" git checkout -b $branch