up
This commit is contained in:
@@ -1,11 +1,3 @@
|
|||||||
# Copyright Avroid, Ltd. 2023-2024
|
|
||||||
#
|
|
||||||
# You can not use the contents of the file in any way without
|
|
||||||
# AVROID, Ltd. written permission.
|
|
||||||
#
|
|
||||||
# To obtain such a permit, you should contact AVROID, Ltd.
|
|
||||||
# at https://avroid.ru
|
|
||||||
|
|
||||||
---
|
---
|
||||||
name: Check license
|
name: Check license
|
||||||
run-name: ${{ gitea.actor }} is start check sources
|
run-name: ${{ gitea.actor }} is start check sources
|
||||||
@@ -23,7 +15,33 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-checkout.git@v4
|
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-checkout.git@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # for work tj-actions/changed-files
|
fetch-depth: 0
|
||||||
persist-credentials: false # for work tj-actions/changed-files
|
persist-credentials: false
|
||||||
- name: Check license
|
- name: Get all files that have changed
|
||||||
|
id: changed-files-specific
|
||||||
|
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-tj-actions-changed-files.git@v44
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
**/*.c
|
||||||
|
**/*.cpp
|
||||||
|
**/*.h
|
||||||
|
**/*.hpp
|
||||||
|
**/*.sh
|
||||||
|
**/*.cmake
|
||||||
|
**/CMakeLists.txt
|
||||||
|
**/Jenkinsfile
|
||||||
|
**/.yaml
|
||||||
|
**/.yml
|
||||||
|
- name: Run step if there is no changed files
|
||||||
|
id: no_files_to_check
|
||||||
|
if: steps.changed-files-specific.outputs.any_changed != 'true'
|
||||||
|
run: echo "*** No changed groovy files, nothing to check. ***"
|
||||||
|
|
||||||
|
- name: Check license for changed files
|
||||||
|
id: check_license
|
||||||
|
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||||
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.7
|
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1.7
|
||||||
|
with:
|
||||||
|
input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }}
|
||||||
|
exclude_pattern:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user