add example

This commit is contained in:
Rustam Tagaev
2024-04-11 16:18:40 +03:00
parent eb8ea872b2
commit c75fae3aed
2 changed files with 27 additions and 2 deletions

View File

@@ -9,8 +9,7 @@
--- ---
name: Check license name: Check license
run-name: ${{ gitea.actor }} is start check sources run-name: ${{ gitea.actor }} is start check sources
on: [push] on: [pull_request]
# on: [pull_request]
jobs: jobs:
scan-secrets: scan-secrets:

View File

@@ -3,3 +3,29 @@
Action для проверки лицензии в файлах Action для проверки лицензии в файлах
[Ссылка на проект](https://git.avroid.tech/Tools/Addlicense) [Ссылка на проект](https://git.avroid.tech/Tools/Addlicense)
Пример использования
```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 # for work tj-actions/changed-files
persist-credentials: false # for work tj-actions/changed-files
- name: Check license
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1
```