diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 48cd99c..3d63ffb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,7 +20,7 @@ jobs: - name: Deploy to AWS run: | - echo "::add-mask::${{ github.event.inputs.awsCredentials }}" > credentials.txt >/dev/null + echo "::set-env name=AWS_CREDENTIALS::${{ github.event.inputs.awsCredentials }}" export AWS_ACCESS_KEY_ID=$(grep -oP '(?<=AWS_ACCESS_KEY_ID=)\S+' credentials.txt) export AWS_SECRET_ACCESS_KEY=$(grep -oP '(?<=AWS_SECRET_ACCESS_KEY=)\S+' credentials.txt) export AWS_SESSION_TOKEN=$(grep -oP '(?<=AWS_SESSION_TOKEN=)\S+' credentials.txt)