diff --git a/.github/workflows/testy.yml b/.github/workflows/testy.yml index 9f54b14..15925cf 100644 --- a/.github/workflows/testy.yml +++ b/.github/workflows/testy.yml @@ -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 \ No newline at end of file