Files
actions-addlicense-docker/.gitea/workflows/check-license.yml
Workflow config file is invalid. Please check your config file: yaml: line 24: found a tab character where an indentation space is expected
aleksandr.vodyanov 02180b59e3 up
2024-05-17 17:59:02 +03:00

49 lines
1.7 KiB
YAML

---
name: Check license
run-name: ${{ gitea.actor }} is start check sources
on: [pull_request]
jobs:
scan-secrets:
name: Check license
runs-on: docker
container:
image: harbor.avroid.tech/devops/node:20-alpine3.19-0
steps:
- run: echo "Start job on ${{ runner.name }} with os ${{ runner.os }}"
- run: echo "Work with branch ${{ gitea.ref }} repository ${{ gitea.repository }}"
- name: Check out repository code
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-checkout.git@v4
with:
fetch-depth: 0
persist-credentials: false
- 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
**/Dockerfile
- 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.11
with:
input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }}
exclude_pattern: