From e040b6148279891a3499b4588616c2eb3d27df4f Mon Sep 17 00:00:00 2001 From: Max Schmidt Date: Mon, 14 Aug 2023 17:42:05 +0200 Subject: [PATCH] add REPOSITORY to .env and replace it in workflow Signed-off-by: Max Schmidt --- .env | 3 ++- .github/workflows/push.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 86e04b5..87ef9a0 100644 --- a/.env +++ b/.env @@ -7,4 +7,5 @@ PAYLOAD_SECRET=supersecretkey MONGODB_URI=mongodb://payload:test@mongo:27017 MONGODB_USER=payload MONGODB_PW=test -TOKEN=supersecrettoken \ No newline at end of file +TOKEN=supersecrettoken +REPOSITORY=mooxl/astroad \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ed396a8..4ae8cb8 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -56,8 +56,8 @@ jobs: replace_env 'MONGODB_PW' '${{ secrets.MONGODB_PW }}' replace_env 'TOKEN' '${{ secrets.TOKEN }}' - # Append GitHub repository to .env - echo "REPOSITORY=${{ github.repository }}" >> .env + # Replace .env with GitHub repository + replace_env 'REPOSITORY' '${{ github.repository }} mkdir -p ./astro cp .env ./astro/.env