Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
### Changed

- Updated actions:
- actions/upload-artifact@v4 -> actions/upload-artifact@v7
- actions/github-script@v7 -> actions/github-script@v8
- peter-evans/find-comment@v3 -> peter-evans/find-comment@v4
- peter-evans/create-or-update-comment@v4 -> peter-evans/create-or-update-comment@v5

## [1.9.2] - 2026-04-07

Expand Down
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ runs:

- name: CAR file artifact upload
if: ${{ inputs.upload-car-artifact != 'false' }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ${{ env.artifact_name }}
path: build.car
Expand Down Expand Up @@ -323,7 +323,7 @@ runs:

- name: Set GitHub commit status
if: ${{ inputs.set-github-status == 'true' }}
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
github-token: ${{ inputs.github-token }}
script: |
Expand Down Expand Up @@ -355,7 +355,7 @@ runs:
- name: Get PR number for workflow_run
if: ${{ inputs.set-pr-comment == 'true' && github.event_name == 'workflow_run' }}
id: pr-number
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
github-token: ${{ inputs.github-token }}
script: |
Expand All @@ -367,11 +367,11 @@ runs:
head: `${context.payload.workflow_run.head_repository.owner.login}:${context.payload.workflow_run.head_branch}`,
state: 'open'
});

if (pulls.data.length > 0) {
// Try to find the PR whose head SHA matches the workflow run's head_sha
const matchingPr = pulls.data.find(pr => pr.head.sha === context.payload.workflow_run.head_sha);

if (matchingPr) {
core.setOutput('number', matchingPr.number);
core.setOutput('sha', matchingPr.head.sha);
Expand All @@ -388,7 +388,7 @@ runs:

- name: Find Comment to update
if: ${{ inputs.set-pr-comment == 'true' && (github.event_name == 'pull_request' || github.event_name == 'pull_request_target' || (github.event_name == 'workflow_run' && steps.pr-number.outputs.number)) }}
uses: peter-evans/find-comment@v3
uses: peter-evans/find-comment@v4
id: fc
with:
issue-number: ${{ github.event.pull_request.number || steps.pr-number.outputs.number }}
Expand All @@ -398,7 +398,7 @@ runs:

- name: Create or update comment
if: ${{ inputs.set-pr-comment == 'true' && (github.event_name == 'pull_request' || github.event_name == 'pull_request_target' || (github.event_name == 'workflow_run' && steps.pr-number.outputs.number)) }}
uses: peter-evans/create-or-update-comment@v4
uses: peter-evans/create-or-update-comment@v5
with:
token: ${{ inputs.github-token }}
comment-id: ${{ steps.fc.outputs.comment-id }}
Expand Down
Loading