mirror of
https://github.com/gradle/actions.git
synced 2025-10-17 15:08:37 +08:00
Bumps the github-actions group with 3 updates in the / directory: [gradle/actions](https://github.com/gradle/actions), [tj-actions/changed-files](https://github.com/tj-actions/changed-files) and [github/codeql-action](https://github.com/github/codeql-action). Updates `gradle/actions` from 4.4.2 to 4.4.3 - [Release notes](https://github.com/gradle/actions/releases) - [Commits](017a9effdb...ed408507ea
) Updates `tj-actions/changed-files` from 46.0.5 to 47.0.0 - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](ed68ef82c0...24d32ffd49
) Updates `github/codeql-action` from 3.30.1 to 3.30.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](f1f6e5f6af...192325c861
) --- updated-dependencies: - dependency-name: gradle/actions dependency-version: 4.4.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: tj-actions/changed-files dependency-version: 47.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: github/codeql-action dependency-version: 3.30.3 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
|
|
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
|