Skip to content

Commit

Permalink
Move echo master.key step
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronskiba committed Jul 4, 2024
1 parent 6665bf7 commit a6a7b22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:@localhost:5432/roadmap_test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}

steps:
# Checkout the repo
Expand Down Expand Up @@ -56,6 +57,7 @@ jobs:
# Copy all of the example configs over
- name: 'Setup Default Configuration'
run: |
echo $RAILS_MASTER_KEY > config/master.key
cp config/database.yml.sample config/database.yml
cp config/initializers/contact_us.rb.example config/initializers/contact_us.rb
cp config/initializers/wicked_pdf.rb.example config/initializers/wicked_pdf.rb
Expand All @@ -65,7 +67,6 @@ jobs:
- name: 'Setup Credentials'
run: |
# generate a default credential file and key
echo ${{ secrets.RAILS_MASTER_KEY }} > config/master.key
cp config/credentials.yml.postgresql config/credentials.yml.enc
# Set the path to the wkhtmltopdf executable
Expand Down

0 comments on commit a6a7b22

Please sign in to comment.