Skip to content

Commit

Permalink
Fix placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Samir Boulema committed Aug 2, 2023
1 parent 7b529a9 commit 5dde496
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,12 @@ jobs:
vsix-manifest-file: 'src/MjmlVisualizer.Vsix/source.extension.vsixmanifest'

- name: Replace Placeholders
uses: Slidem/[email protected]
uses: cschleiden/replace-tokens@v1
with:
files: '["**/MjmlRepository.cs"]'
env:
MJML_USERNAME: ${{ secrets.MJML_USERNAME }}
MJML_PASSWORD: ${{ secrets.MJML_PASSWORD }}
with:
working-directory: src/MjmlVisualizer/Repositories
fail-on-missing-variables: "true"
search_input: |
{
"files": ["MjmlRepository.cs"],
"depth": 1
}

- name: Setup MSBuild
uses: microsoft/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions src/MjmlVisualizer/Repositories/MjmlRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ namespace MjmlVisualizer.Repositories
public class MjmlRepository
{
private const string _apiURL = "https://api.mjml.io/v1/render";
private const string _userName = "MJML_USERNAME";
private const string _password = "MJML_PASSWORD";
private const string _userName = "#{MJML_USERNAME}#";
private const string _password = "#{MJML_PASSWORD}#";
private readonly HttpClient _httpClient;

public MjmlRepository()
Expand Down

0 comments on commit 5dde496

Please sign in to comment.