add REPOSITORY to .env and replace it in workflow
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
7f257d9027
commit
e040b61482
3
.env
3
.env
@ -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
|
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user