convert server to use serve instead of next-start #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate CODEOWNERS | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
checkIfCodeownersUpdateNeeded: | |
permissions: | |
pull-requests: write # Used to add comment to PR | |
name: Check if CODEOWNERS needs to be updated | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Get count of added files | |
uses: actions/[email protected] | |
id: set-added-files-count | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
result-encoding: string | |
script: | | |
const { getAddedFiles } = require('./.github/workflows/scripts/check_for_new_files.js'); | |
return getAddedFiles({github, context, core}); | |
- name: Install npm package ignore | |
if: ${{ steps.set-added-files-count.outputs.result > 0 }} | |
run: yarn add [email protected] -W # help verify CODEOWNERS | |
- name: Check file against CODEOWNERS | |
if: ${{ steps.set-added-files-count.outputs.result > 0 }} | |
uses: actions/[email protected] | |
env: | |
CURRENT_BRANCH: ${{ github.head_ref }} | |
CURRENT_REPO: ${{ github.repository }} | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const ignore = require('ignore'); | |
const { validateCodeowners } = require('./.github/workflows/scripts/check_for_new_files.js'); | |
validateCodeowners({github, context, fetch, ignore}); |