From 4c095e271a44ad3790d3dd63df4a914d7cf2817d Mon Sep 17 00:00:00 2001 From: Enno Runne <458526+ennru@users.noreply.github.com> Date: Fri, 31 May 2024 17:00:13 +0200 Subject: [PATCH] fix: keep .env during repo sync (#2156) --- .github/workflows/samples-repo-sync.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/samples-repo-sync.yml b/.github/workflows/samples-repo-sync.yml index 5d194d0ff6..ea69bfea34 100644 --- a/.github/workflows/samples-repo-sync.yml +++ b/.github/workflows/samples-repo-sync.yml @@ -41,8 +41,17 @@ jobs: run: | rsync -r --delete kalix-jvm-sdk/samples/${{ matrix.sample }}/* ${{ matrix.public-repo }} + - name: Explicitly add the .env file + run: | + git config user.name 'Kalix Bot' + git config user.email 'noreply@github.com' + git add .env + git commit -m "Keep .env" + - name: Create Pull Request - ${{ matrix.public-repo }} - uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 + # https://github.com/peter-evans/create-pull-request + # v6.0.5 + uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e with: path: ${{ matrix.public-repo }} title: Changes from JVM SDK repo