From 81ff31e9dc71ade8983f5ea77c7107831ab3df48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=BCbner?= <25882725+shuebner20@users.noreply.github.com> Date: Sun, 25 Jul 2021 16:10:17 +0200 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines Read GitHub user information from secure file --- azure-pipelines.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 06665cc..948e57a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,7 +13,19 @@ steps: - checkout: self clean: true persistCredentials: true - displayName: 'Check out branch' + displayName: 'check out branch' + +- task: DownloadSecureFile@1 + inputs: + secureFile: 'github-user-options.json' + name: GitHubUserOptions + displayName: 'retrieve GitHub user options' + +- task: oneLuckiDevJson2Variable@1 + inputs: + jsonFile: '$(GitHubUserOptions.secureFilePath)' + shouldPrefixVariables: false + displayName: 'parse GitHub user options' - task: NodeTool@0 inputs: @@ -25,6 +37,8 @@ steps: displayName: 'npm install' - script: | + git config --global user.email '$(gitUserEmail)' + git config --global user.name '$(gitUserName)' npm version patch -m 'Bump version to %s [skip ci]' displayName: 'npm bump version'