chore(deps): bump @aws-amplify/amplify-cli-core from 4.3.6 to 4.3.8 #7
Workflow file for this run
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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Get count of added files | |
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | |
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 await 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/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | |
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'); | |
await validateCodeowners({github, context, fetch, ignore}); |