Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
		
			
				
	
	
		
			36 lines
		
	
	
		
			936 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			936 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Check Onboarding KCL
 | 
						|
 | 
						|
on:
 | 
						|
  pull_request:
 | 
						|
    types: [opened, synchronize]
 | 
						|
    paths:
 | 
						|
      - 'src/lib/exampleKcl.ts'
 | 
						|
 | 
						|
permissions:
 | 
						|
  contents: read
 | 
						|
  issues: write
 | 
						|
  pull-requests: write
 | 
						|
 | 
						|
jobs:
 | 
						|
  comment:
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    steps:
 | 
						|
      - name: Checkout repository
 | 
						|
        uses: actions/checkout@v4
 | 
						|
 | 
						|
      - name: Comment on PR
 | 
						|
        uses: actions/github-script@v7
 | 
						|
        with:
 | 
						|
          script: |
 | 
						|
            const message = '`src/lib/exampleKcl.ts` has been updated in this PR, please review and update the `src/routes/onboarding`, if needed.';
 | 
						|
            const issue_number = context.payload.pull_request.number;
 | 
						|
            const owner = context.repo.owner;
 | 
						|
            const repo = context.repo.repo;
 | 
						|
 | 
						|
            // Post a comment on the PR
 | 
						|
            await github.rest.issues.createComment({
 | 
						|
              owner,
 | 
						|
              repo,
 | 
						|
              issue_number,
 | 
						|
              body: message,
 | 
						|
            }); |