add REPOSITORY to .env and replace it in workflow

Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt 2023-08-14 17:42:05 +02:00
parent 7f257d9027
commit e040b61482
2 changed files with 4 additions and 3 deletions

3
.env
View File

@ -7,4 +7,5 @@ PAYLOAD_SECRET=supersecretkey
MONGODB_URI=mongodb://payload:test@mongo:27017
MONGODB_USER=payload
MONGODB_PW=test
TOKEN=supersecrettoken
TOKEN=supersecrettoken
REPOSITORY=mooxl/astroad

View File

@ -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