Skip to content

Commit

Permalink
Add versions in PR title
Browse files Browse the repository at this point in the history
  • Loading branch information
radical committed Aug 21, 2023
1 parent 46a8acc commit e0dfbfe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bump-chrome-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
run: >-
make -C src/mono/wasm build-tasks &&
.dotnet/dotnet build eng/testing/bump-chrome-version.proj -p:Configuration=Release &&
git add eng/testing/ChromeVersions.props
git add eng/testing/ChromeVersions.props &&
cat eng/testing/bump-chrome-pr.env >> "$GITHUB_ENV"
- name: Check for changes
id: check_changes
Expand All @@ -48,12 +49,13 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const { CHROME_LINUX_VER, CHROME_WIN_VER } = process.env
const { data: pullRequest } = await github.rest.pulls.create({
base: context.ref,
head: "update-chrome-version-${{ github.run_id }}",
owner: context.repo.owner,
repo: context.repo.repo,
title: '[wasm] Bump chrome version used for testing',
title: '[wasm] Bump chrome for testing - linux: ${CHROME_LINUX_VER}, windows: ${CHROME_WIN_VER}',
body: ''
});
await github.rest.issues.setLabels({
Expand Down
10 changes: 10 additions & 0 deletions eng/testing/bump-chrome-version.proj
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,19 @@
</PropertyGroup>
</Project>
</_PropsContent>

<!-- ensure newline at the end -->
<EnvVarsForPR>
CHROME_LINUX_VER=$(linux_ChromeVersion)
CHROME_WIN_VER=$(win_ChromeVersion)

</EnvVarsForPR>
</PropertyGroup>

<Message Text="Writing version props: $(_PropsContent)" Importance="High" />
<WriteLinesToFile Lines="$(_PropsContent)" File="$(RepositoryEngineeringDir)testing\ChromeVersions.props" Overwrite="true" />

<WriteLinesToFile Lines="$(EnvVarsForPR)" File="$(RepositoryEngineeringDir)testing\bump-chrome-pr.env" Overwrite="true" />
</Target>

<Import Project="..\..\Directory.Build.targets" />
Expand Down

0 comments on commit e0dfbfe

Please sign in to comment.