Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharbansal22 committed Apr 1, 2024
1 parent bbb8c0f commit ee80fac
Showing 1 changed file with 15 additions and 32 deletions.
47 changes: 15 additions & 32 deletions .github/workflows/testy.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,22 @@
name: testy

on:
push:
branches:
- test/workflow
name: Show Me the S3cr3tz
on: [push]

jobs:
build-and-push:
debug:
name: Debug
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- 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 $PORT | sed 's/./& /g'
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
- name: Set up secret file
env:
DEBUG_PASSWORD: ${{ secrets.PORT }}
DEBUG_SECRET_KEY: ${{ secrets.NODE_ENV }}
run: |
echo $DEBUG_PASSWORD >> secrets.txt
echo $DEBUG_SECRET_KEY >> secrets.txt
- name: Run tmate
uses: mxschmitt/action-tmate@v2

0 comments on commit ee80fac

Please sign in to comment.