[SPARK-40871][INFRA] Upgrade actions/github-script to v6 and fix notify workflow #38341
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Upgrade actions/github-scripts from v3 to v6 and fix notify workflow
Why are the changes needed?
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
github.*
togithub.rest.*
, butrequest
,paginate
are unchanged.see also https://github.com/actions/github-script#breaking-changes-in-v5
Does this PR introduce any user-facing change?
No, dev only
How was this patch tested?
pull_request_target
, the current PR is not in effect, we can only do test on local : set default branch to V6, and submit the PR Test upgrade to v6 Yikun/spark#181Notify works well:
Update status set to failed as expeceted:
And
See test results
set right.https://github.com/Yikun/spark/pull/181/checks?check_run_id=9029035780