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:
|
||||
if: github.repository == 'nvm-sh/nvm' && github.actor == 'ljharb'
|
||||
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'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
16
.github/workflows/rebase.yml
vendored
16
.github/workflows/rebase.yml
vendored
@@ -2,16 +2,12 @@ name: Automatic Rebase
|
||||
|
||||
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:
|
||||
_:
|
||||
name: "Automatic Rebase"
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: ljharb/rebase@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
uses: ljharb/actions/.github/workflows/rebase.yml@main
|
||||
secrets:
|
||||
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]
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
_:
|
||||
permissions:
|
||||
pull-requests: read # for ljharb/require-allow-edits to check 'allow edits' on PR
|
||||
|
||||
name: "Require “Allow Edits”"
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -8,7 +8,7 @@ permissions:
|
||||
jobs:
|
||||
tests:
|
||||
permissions:
|
||||
contents: write
|
||||
contents: read # for actions/checkout@v6
|
||||
|
||||
name: "tests"
|
||||
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"
|
||||
|
||||
wsl_matrix:
|
||||
permissions:
|
||||
contents: none
|
||||
continue-on-error: true
|
||||
name: 'WSL nvm install'
|
||||
defaults:
|
||||
@@ -187,6 +189,8 @@ jobs:
|
||||
node -v
|
||||
|
||||
wsl_matrix_unofficial:
|
||||
permissions:
|
||||
contents: none
|
||||
continue-on-error: true
|
||||
name: 'WSL nvm install'
|
||||
defaults:
|
||||
|
||||
Reference in New Issue
Block a user