Skip to content

Commit

Permalink
“update”
Browse files Browse the repository at this point in the history
  • Loading branch information
CocoByte committed Jul 19, 2024
1 parent 5661765 commit a467e13
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/rebuild-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,9 @@ jobs:
cf_password: ${{ secrets[env.CF_PASSWORD] }}
cf_org: cisa-dotgov
cf_space: ${{ github.event.inputs.environment }}
command: |
VCAP_SERVICES=$(cat env_output.txt)
port=$(echo "$VCAP_SERVICES" | sed -n 's/.*"port": *"\([^"]*\)".*/\1/p')
username=$(echo "$VCAP_SERVICES" | sed -n 's/.*"username": *"\([^"]*\)".*/\1/p')
password=$(echo "$VCAP_SERVICES" | sed -n 's/.*"password": *"\([^"]*\)".*/\1/p')
dbname=$(echo "$VCAP_SERVICES" | sed -n 's/.*"db_name": *"\([^"]*\)".*/\1/p')
host=$(echo "$VCAP_SERVICES" | sed -n 's/.*"host": *"\([^"]*\)".*/\1/p')
echo "port=$port" >> $GITHUB_ENV
echo "username=$username" >> $GITHUB_ENV
echo "password=$password" >> $GITHUB_ENV
echo "dbname=$dbname" >> $GITHUB_ENV
echo "host=$host" >> $GITHUB_ENV
run: |
echo "hey"
echo "you"
- name: Connect to PostgreSQL
run: |
Expand Down

0 comments on commit a467e13

Please sign in to comment.