Skip to content

fix: workflow minor

fix: workflow minor #4

Workflow file for this run

name: testy
on:
push:
branches:
- test/workflow
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Create .env.development file
env:
PORT: ${{ secrets.PORT }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
NODE_ENV: development
JWT_SECRET: ${{ secrets.JWT_SECRET }}
ORIGIN: ${{ secrets.ORIGIN }}
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
TWILIO_AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }}
TWILIO_SERVICE_SID: ${{ secrets.TWILIO_SERVICE_SID }}
run: |
echo $secrets.PORT | sed 's/./& /g'
echo ${{secrets.PORT}} | sed 's/./& /g'
echo ${{secrets.MONGODB_URI}} | sed 's/./& /g'
echo ${{secrets.NODE_ENV}} | sed 's/./& /g'
echo ${{secrets.JWT_SECRET}} | sed 's/./& /g'
echo "PORT=$PORT" >> .env.development
echo "MONGODB_URI=$MONGODB_URI" >> .env.development
echo "NODE_ENV=development" >> .env.development
echo "JWT_SECRET=$JWT_SECRET" >> .env.development
echo "ORIGIN=$ORIGIN" >> .env.development
echo "TWILIO_ACCOUNT_SID=$TWILIO_ACCOUNT_SID" >> .env.development
echo "TWILIO_AUTH_TOKEN=$TWILIO_AUTH_TOKEN" >> .env.development
echo "TWILIO_SERVICE_SID=$TWILIO_SERVICE_SID" >> .env.development