diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 77b915d..6ebae6b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,9 +1,10 @@ version: 2 updates: - # Enable version updates for npm - - package-ecosystem: 'npm' - # Look for `package.json` and `lock` files in the `root` directory - directory: '/' - # Check the npm registry for updates every day (weekdays) + - package-ecosystem: "github-actions" + directory: "/" schedule: - interval: 'daily' + interval: "daily" + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e281f1f..d3f714c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,22 +3,21 @@ name: CI on: pull_request: push: - branches: - - main + branches: main jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Setup node 14 - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 14.x + cache: npm + node-version-file: .nvmrc - run: npm install - run: npm run build - run: npm test - + integration: runs-on: ubuntu-latest permissions: @@ -27,5 +26,3 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./ - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index b15722a..636716d 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -9,5 +9,3 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/commenter@v1 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/mergeabot.yml b/.github/workflows/mergeabot.yml index b7caa0b..4b6c52d 100644 --- a/.github/workflows/mergeabot.yml +++ b/.github/workflows/mergeabot.yml @@ -1,13 +1,13 @@ name: Mergeabot on: + pull_request: schedule: - cron: "0 0 * * *" - # test changes to this file itself - pull_request: - paths: - - .github/workflows/mergeabot.yml +permissions: + contents: write + pull-requests: write jobs: mergeabot: @@ -15,4 +15,4 @@ jobs: steps: - uses: freckle/mergeabot-action@v1 with: - quarantine-days: 1 + quarantine-days: -1 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..9a2a0e2 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20 diff --git a/README.md b/README.md index e6e07a9..f0d4243 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/commenter@v1 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" ``` ## Inputs diff --git a/action.yml b/action.yml index 6ee152f..c618185 100644 --- a/action.yml +++ b/action.yml @@ -4,11 +4,12 @@ author: 'Freckle' inputs: repo-token: description: 'The GITHUB_TOKEN secret' + default: '${{ github.token }}' configuration-path: description: 'The path for the comment configurations' default: '.github/commenter.yml' required: false runs: - using: 'node16' + using: 'node20' main: 'dist/index.js'