From 9fd85914b72d2a0548149d967b812aae162b571d Mon Sep 17 00:00:00 2001 From: Calum Towers Date: Sat, 2 Sep 2023 11:01:40 +0100 Subject: [PATCH] ci: Update Nova Authentication --- .github/workflows/test.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b82a670b4..f24d11c1bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,9 +48,13 @@ jobs: # Authenticate Nova - name: Authenticate Nova Installation + env: + NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }} + NOVA_PASSWORD: ${{ secrets.NOVA_PASSWORD }} run: | cp auth.json.example auth.json - composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_PASSWORD} + sed -i "s/your-username/${NOVA_USERNAME}/g" auth.json + sed -i "s/your-password/${NOVA_PASSWORD}/g" auth.json # Start MySQL and Create Databases - name: Create Databases @@ -188,9 +192,13 @@ jobs: php-version: 8.1 - name: Authenticate Nova Installation + env: + NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }} + NOVA_PASSWORD: ${{ secrets.NOVA_PASSWORD }} run: | cp auth.json.example auth.json - composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_PASSWORD} + sed -i "s/your-username/${NOVA_USERNAME}/g" auth.json + sed -i "s/your-password/${NOVA_PASSWORD}/g" auth.json - name: Install PHP dependencies uses: ramsey/composer-install@v2