mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-31 10:00:01 +08:00 
			
		
		
		
	![dependabot[bot]](/assets/img/avatar_default.png) 1c71d2134f
			
		
	
	
		1c71d2134f
		
			
		
	
	
	
	
		
			
			Bumps the github-actions group with 2 updates in the / directory: [tj-actions/changed-files](https://github.com/tj-actions/changed-files) and [github/codeql-action](https://github.com/github/codeql-action). Updates `tj-actions/changed-files` from 45.0.4 to 45.0.5 - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](4edd678ac3...bab30c2299) Updates `github/codeql-action` from 3.27.4 to 3.27.7 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](ea9e4e3799...babb554ede) --- updated-dependencies: - dependency-name: tj-actions/changed-files dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: CI-check-no-dist-update
 | |
| 
 | |
| # Prohibit any change to 'dist/**' on a non-release branch
 | |
| on:
 | |
|   workflow_dispatch:
 | |
|   pull_request:
 | |
|     paths:
 | |
|       - 'dist/**'
 | |
| 
 | |
| permissions:
 | |
|   contents: read
 | |
| 
 | |
| jobs:
 | |
|   fail-on-dist-update:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|     - name: Checkout sources
 | |
|       uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
 | |
|       with:
 | |
|         fetch-depth: 0
 | |
| 
 | |
|     - name: Get changed files
 | |
|       id: changed-files
 | |
|       uses: tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366 # v45.0.5
 | |
|       with:
 | |
|         files: |
 | |
|           dist/**
 | |
| 
 | |
|     - name: Print changes to dist directory
 | |
|       env:
 | |
|         ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
 | |
|       run: |
 | |
|         for file in ${ALL_CHANGED_FILES}; do
 | |
|           echo "$file was changed"
 | |
|         done
 | |
| 
 | |
|     - run: |
 | |
|         echo "The 'dist' directory is automatically updated by the release process."
 | |
|         echo "It should not be updated manually in a non-release branch or a pull request."
 | |
|         exit 1
 |