This action helps you to edit the connection strings in your appsettings.json file.
To edit a connection string inside of an appsettings.json file:
- name: edit connection string
uses: benday-inc/edit-dbconnstr-in-appsettings@main
with:
pathtosettingsfile: '${{ github.workspace }}/Benday.Demo123/src/Benday.Demo123.WebUi/appsettings.json'
name: "default"
connectionstring: "Server=(local); Database=demo123; Trusted_Connection=True;"
- None
pathtosettingsfile
- Path to the appsettings.json filename
- Name of the connection stringconnectionstring
- Value for the connection string
- None