Skip to content

Commit

Permalink
feat: add Node.js up PR (#519)
Browse files Browse the repository at this point in the history
Создает PR при появлении новой версии Node.js обновляя `.nvmrc`
  • Loading branch information
SevereCloud authored Dec 16, 2024
1 parent 236f55a commit b155d6d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions shared/node/nvmrc-up-pr/action.yml
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 }}

0 comments on commit b155d6d

Please sign in to comment.