-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Создает PR при появлении новой версии Node.js обновляя `.nvmrc`
- Loading branch information
1 parent
236f55a
commit b155d6d
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 'Node.js up PR' | ||
description: 'Create PR with up Node.js version' | ||
inputs: | ||
token: | ||
required: true | ||
description: 'token with access to your repository' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Run update version | ||
run: curl -s https://nodejs.org/dist/index.json | jq 'map(select(.lts != false))|sort_by(.date)[-1].version' -r > .nvmrc | ||
shell: bash | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
title: Node.js version update | ||
branch: github-actions/build/tools/nvm-up | ||
commit-message: 'build(tools): Node.js version up' | ||
body: | | ||
Automated Node.js version up | ||
## Release notes | ||
- | ||
token: ${{ inputs.token }} |