Skip to content

Commit

Permalink
fix: Fix pull-secrets.sh (again) (#2030)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Jul 27, 2023
1 parent d50e5dd commit 0ee9517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ jobs:
export AWS_SECRET_ACCESS_KEY=${{ secrets.PIZZA_AWS_SECRET_ACCESS_KEY }}
export AWS_REGION=eu-west-2
./scripts/pull-secrets.sh
CI=true ./scripts/pull-secrets.sh
echo -e "\nROOT_DOMAIN=${{ env.FULL_DOMAIN }}\n" > .env.temp
cat .env .env.temp .env.staging > .env.pizza
Expand Down Expand Up @@ -356,7 +356,7 @@ jobs:
export AWS_SECRET_ACCESS_KEY=${{ secrets.PIZZA_AWS_SECRET_ACCESS_KEY }}
export AWS_REGION=eu-west-2
./scripts/pull-secrets.sh
CI=true ./scripts/pull-secrets.sh
echo -e "\nROOT_DOMAIN=${{ env.FULL_DOMAIN }}\n" > .env.temp
cat .env .env.temp .env.staging > .env.pizza
Expand Down
2 changes: 1 addition & 1 deletion scripts/pull-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

cd "$(dirname "${BASH_SOURCE[0]}")"

if [ -z "${CI}" ]
if [ "${CI}" ]
then
echo "Fetching secrets for CI"
aws s3 cp s3://pizza-secrets/root.env ./../.env
Expand Down

0 comments on commit 0ee9517

Please sign in to comment.