Skip to content

Commit

Permalink
Adds PR URL to workflow summaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
tommie committed Dec 28, 2023
1 parent 45c865f commit 6325931
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/v8build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ jobs:
git checkout "${latest_v8_version:-$latest_v8_hash}"
echo "latest_v8_version=${latest_v8_version:-$latest_v8_hash}" >>"$GITHUB_OUTPUT"
- name: Create PR
- id: create_pr
name: Create PR
uses: peter-evans/create-pull-request@v5
with:
commit-message: Add built V8 libraries at ${{ steps.update_v8.outputs.latest_v8_version }}
Expand All @@ -174,3 +175,7 @@ jobs:
deps/v8_hash
branch: workflow/v8build
delete-branch: true

- name: Create Summary
run: |
echo "PR: ${{ steps.create_pr.outputs.pull-request-url }}" >>"$GITHUB_STEP_SUMMARY"
7 changes: 6 additions & 1 deletion .github/workflows/v8upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
echo "latest_v8_hash=$(<deps/latest_v8_hash)" >>"$GITHUB_OUTPUT"
echo "has_upgrade=$(git status --porcelain | grep -q . && echo y || echo n)" >>"$GITHUB_OUTPUT"
- name: Create PR
- id: create_pr
name: Create PR
if: ${{ steps.check_v8.outputs.has_upgrade }} == 'y'
uses: peter-evans/create-pull-request@v5
with:
Expand All @@ -40,3 +41,7 @@ jobs:
add-paths: deps/latest_v8_hash
branch: workflow/v8upgrade
delete-branch: true

- name: Create Summary
run: |
echo "PR: ${{ steps.create_pr.outputs.pull-request-url }}" >>"$GITHUB_STEP_SUMMARY"

0 comments on commit 6325931

Please sign in to comment.