Skip to content

Commit

Permalink
Display the merge commit as the version of the seed.
Browse files Browse the repository at this point in the history
  • Loading branch information
goodov committed Aug 8, 2024
1 parent 7a0c55b commit bd4cee1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/generate-test-seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
env:
ACTION_RUN_URL: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
BASE_SHA: '${{ github.event.pull_request.base.sha }}'
HEAD_SHA: '${{ github.event.pull_request.head.sha }}'
REMOTE_SEED_PATH: 'pull/${{ github.event.pull_request.number }}/seed'
SEED_VERSION: 'pull/${{ github.event.pull_request.number }}@${{ github.event.pull_request.head.sha }}'
SEED_VERSION: 'pull/${{ github.event.pull_request.number }}@${{ github.sha }}'

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
Expand Down Expand Up @@ -103,10 +104,15 @@ jobs:
3. Restart the browser to apply the seed.
4. Ensure **Active Variations** section at \`brave://version\` starts with the expected seed version (see below).
#### Seed Details
- Version: \`${process.env.SEED_VERSION}\`
- Uploaded: \`${new Date().toISOString()}\`
- Serial Number: \`${serialNumberContent}\`
### Seed Details
|Parameter|Value|
|--------|--------|
|Version|\`${process.env.SEED_VERSION}\`|
|Uploaded|${new Date().toUTCString()}|
|PR commit|${process.env.HEAD_SHA}|
|Base commit|${process.env.BASE_SHA}|
|Merge commit|${process.env.GITHUB_SHA}|
|Serial number|\`${serialNumberContent}\`|
`
const comment = require('.github/workflows/scripts/comment.js')
await comment(github, context, commentBody)
Expand Down

0 comments on commit bd4cee1

Please sign in to comment.