Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-40871][INFRA] Upgrade actions/github-script to v6 and fix notify workflow #38341

Closed
wants to merge 1 commit into from

Conversation

Yikun
Copy link
Member

@Yikun Yikun commented Oct 22, 2022

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/.

Does this PR introduce any user-facing change?

No, dev only

How was this patch tested?

Notify works well:
image

Update status set to failed as expeceted:
image

And See test results set right.
https://github.com/Yikun/spark/pull/181/checks?check_run_id=9029035780

@Yikun
Copy link
Member Author

Yikun commented Oct 22, 2022

cc @HyukjinKwon

@github-actions github-actions bot added the INFRA label Oct 22, 2022
@HyukjinKwon
Copy link
Member

Merged to master.

@Yikun
Copy link
Member Author

Yikun commented Oct 22, 2022

@HyukjinKwon Thanks, it works: #38343

SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…fy workflow

### 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/.

- Since github-script V5,  change from `github.*` to `github.rest.*`, but `request`, `paginate` are unchanged.
  see also https://github.com/actions/github-script#breaking-changes-in-v5
- Since github-script V6, upgrade node12 to node16

### Does this PR introduce _any_ user-facing change?
No, dev only

### How was this patch tested?
- Due to `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 Yikun#181

Notify works well:
<img width="850" alt="image" src="https://user-images.githubusercontent.com/1736354/197310102-6c709716-8a99-422d-8d38-3f770b6925f0.png">

Update status set to failed as expeceted:
<img width="898" alt="image" src="https://user-images.githubusercontent.com/1736354/197310119-30332769-0553-4ffa-816c-97a5ec0b3c27.png">

And `See test results` set right.
https://github.com/Yikun/spark/pull/181/checks?check_run_id=9029035780

Closes apache#38341 from Yikun/upgrade-actions.

Authored-by: Yikun Jiang <yikunkero@gmail.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants