Skip to content

Update gyp-next #1

Update gyp-next

Update gyp-next #1

name: Update gyp-next
on:
schedule:
# Run once a week at 12:00 AM UTC on Sunday.
- cron: 0 0 * * *
workflow_dispatch:
permissions:
contents: read
env:
NODE_VERSION: lts/*
jobs:
update-gyp-next:
# if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/github-script@v7
id: get-gyp-next-version
with:
script: |
const release = await github.rest.repos.getLatestRelease({
owner: 'nodejs',
repo: 'gyp-next',
});
return release.tag_name
result-encoding: string
- name: Update gyp-next
run: |
python update-gyp.py ${{ steps.get-gyp-next-version.outputs.result }}
- name: Open or update PR for the subsystem update
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
with:
branch: actions/update-gyp-next
author: Node.js GitHub Bot <github-bot@iojs.org>
title: 'feat: update gyp-next to ${{ steps.get-gyp-next-version.outputs.result }}'
commit-message: 'feat: update gyp-next to ${{ steps.get-gyp-next-version.outputs.result }}'
update-pull-request-title-and-body: true
body: >
This is an automated update of the gyp-next to
https://github.com/nodejs/gyp-next/releases/tag/${{ steps.get-gyp-next-version.outputs.result }}.
env:

Check failure on line 51 in .github/workflows/update-gyp-next.yml

View workflow run for this annotation

GitHub Actions / Update gyp-next

Invalid workflow file

The workflow is not valid. .github/workflows/update-gyp-next.yml (Line: 51, Col: 13): Unexpected value ''
# GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}