diff --git a/.github/pipelines/github-forward.yml b/.github/pipelines/github-forward.yml index e12fe5a0..d7a3fe52 100644 --- a/.github/pipelines/github-forward.yml +++ b/.github/pipelines/github-forward.yml @@ -95,6 +95,8 @@ extends: $env:GIT_CONFIG_VALUE_0 = "AUTHORIZATION: basic $auth" git fetch omexgithubremote $env:GITHUBBRANCH git checkout -b feature/github-bridge-forward $commit + $timestamp = [DateTime]::UtcNow.ToString('yyyy-MM-dd HH:mm') + Write-Host "##vso[task.setvariable variable=PullRequestTimestamp]$timestamp UTC" env: GITHUB_APP_TOKEN: $(GitHubAppToken) - template: pipelines/templates/git-authenticate-steps-wif.yml@OmexPipelines @@ -119,7 +121,7 @@ extends: parameters: sourceBranchName: 'github-bridge-forward-$(GITHUBCOMMIT)' targetBranchName: $(GITHUBBRANCH) - title: 'GitHub Forward Integration - $(GITHUBCOMMIT)' + title: 'GitHub Forward Integration - $(PullRequestTimestamp) - $(GITHUBCOMMIT)' description: 'GitHub forward integration Pull Request for commit ''$(GITHUBCOMMIT)''' workItemIds: '9421495' enableAutoComplete: true diff --git a/.github/pipelines/github-packageupdate.yml b/.github/pipelines/github-packageupdate.yml index a3a5e34a..c9c3afbc 100644 --- a/.github/pipelines/github-packageupdate.yml +++ b/.github/pipelines/github-packageupdate.yml @@ -47,12 +47,20 @@ extends: NuGetConfigPath: NuGet.Config PropsFilePath: Directory.Packages.props SdkChannel: 'LTS' + - task: PowerShell@2 + displayName: Set PR timestamp + inputs: + targetType: inline + script: |- + $timestamp = [DateTime]::UtcNow.ToString('yyyy-MM-dd HH:mm') + Write-Host "##vso[task.setvariable variable=PullRequestTimestamp]$timestamp UTC" - task: oenginternal.office-vsts-tasks-extension.e881ce1e-41bc-4f59-b8a2-9a6001f43efe.CreatePullRequest@10 displayName: Create Pull Request + condition: succeeded() inputs: SourceBranchName: nuget_packages_update TargetBranchName: main - Title: Automatic NuGet package update + Title: 'Automatic NuGet package update - $(PullRequestTimestamp)' Description: update of NuGet packages WorkItemId: "12645834" Pat: $(omexgithubbotinternalpat)