Skip to content

Commit

Permalink
Update node version, rev actions, use nvmrc
Browse files Browse the repository at this point in the history
And default repo-token to `github.token`.
  • Loading branch information
pbrisbin committed Jan 31, 2024
1 parent fe8f851 commit 334a218
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 25 deletions.
13 changes: 7 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
15 changes: 6 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -27,5 +26,3 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 0 additions & 2 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/commenter@v1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
10 changes: 5 additions & 5 deletions .github/workflows/mergeabot.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
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:
runs-on: ubuntu-latest
steps:
- uses: freckle/mergeabot-action@v1
with:
quarantine-days: 1
quarantine-days: -1
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/commenter@v1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
```
## Inputs
Expand Down
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 334a218

Please sign in to comment.