mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-07-03 12:32:28 +08:00
[actions] update workflows
This commit is contained in:
2
.github/workflows/nodejs-org.yml
vendored
2
.github/workflows/nodejs-org.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
update-nodejs-org:
|
update-nodejs-org:
|
||||||
if: github.repository == 'nvm-sh/nvm' && github.actor == 'ljharb'
|
if: github.repository == 'nvm-sh/nvm' && github.actor == 'ljharb'
|
||||||
permissions:
|
permissions:
|
||||||
contents: none
|
contents: read # for the "Extract and validate version" step's `gh api .../tags` call via the default github.token
|
||||||
name: 'Create PR to nodejs/nodejs.org'
|
name: 'Create PR to nodejs/nodejs.org'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
16
.github/workflows/rebase.yml
vendored
16
.github/workflows/rebase.yml
vendored
@@ -2,16 +2,12 @@ name: Automatic Rebase
|
|||||||
|
|
||||||
on: [pull_request_target]
|
on: [pull_request_target]
|
||||||
|
|
||||||
permissions: read-all
|
permissions:
|
||||||
|
contents: write # for ljharb/rebase to push code to rebase
|
||||||
|
pull-requests: read # for ljharb/rebase to get info about PR
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
_:
|
_:
|
||||||
name: "Automatic Rebase"
|
uses: ljharb/actions/.github/workflows/rebase.yml@main
|
||||||
|
secrets:
|
||||||
runs-on: ubuntu-latest
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
- uses: ljharb/rebase@master
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
6
.github/workflows/require-allow-edits.yml
vendored
6
.github/workflows/require-allow-edits.yml
vendored
@@ -2,10 +2,14 @@ name: Require “Allow Edits”
|
|||||||
|
|
||||||
on: [pull_request_target]
|
on: [pull_request_target]
|
||||||
|
|
||||||
permissions: read-all
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
_:
|
_:
|
||||||
|
permissions:
|
||||||
|
pull-requests: read # for ljharb/require-allow-edits to check 'allow edits' on PR
|
||||||
|
|
||||||
name: "Require “Allow Edits”"
|
name: "Require “Allow Edits”"
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -8,7 +8,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: read # for actions/checkout@v6
|
||||||
|
|
||||||
name: "tests"
|
name: "tests"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
4
.github/workflows/windows-npm.yml
vendored
4
.github/workflows/windows-npm.yml
vendored
@@ -94,6 +94,8 @@ jobs:
|
|||||||
bash.exe "%USERPROFILE%\setup.sh"
|
bash.exe "%USERPROFILE%\setup.sh"
|
||||||
|
|
||||||
wsl_matrix:
|
wsl_matrix:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
name: 'WSL nvm install'
|
name: 'WSL nvm install'
|
||||||
defaults:
|
defaults:
|
||||||
@@ -187,6 +189,8 @@ jobs:
|
|||||||
node -v
|
node -v
|
||||||
|
|
||||||
wsl_matrix_unofficial:
|
wsl_matrix_unofficial:
|
||||||
|
permissions:
|
||||||
|
contents: none
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
name: 'WSL nvm install'
|
name: 'WSL nvm install'
|
||||||
defaults:
|
defaults:
|
||||||
|
|||||||
Reference in New Issue
Block a user