Compare commits
10 Commits
bb242cecb4
...
16c8d2a6ab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16c8d2a6ab | ||
|
|
e30b671a1c | ||
|
|
28efaf2d2b | ||
|
|
a4eb51bf98 | ||
|
|
70649e125d | ||
|
|
08d94060ed | ||
|
|
75c1add22e | ||
|
|
07f8276f0c | ||
|
|
c2f21a0a66 | ||
|
|
6799e04354 |
@@ -21,13 +21,13 @@ jobs:
|
|||||||
- run: echo "Start job on ${{ runner.name }} with os ${{ runner.os }}"
|
- run: echo "Start job on ${{ runner.name }} with os ${{ runner.os }}"
|
||||||
- run: echo "Work with branch ${{ gitea.ref }} repository ${{ gitea.repository }}"
|
- run: echo "Work with branch ${{ gitea.ref }} repository ${{ gitea.repository }}"
|
||||||
- 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://${{ secrets.CI_USER }}:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-checkout.git@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Get all files that have changed
|
- name: Get all files that have changed
|
||||||
id: changed-files-specific
|
id: changed-files-specific
|
||||||
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-tj-actions-changed-files.git@v44
|
uses: https://${{ secrets.CI_USER }}:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-tj-actions-changed-files.git@v44
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
**/*.c
|
**/*.c
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
- name: Check license for changed files
|
- name: Check license for changed files
|
||||||
id: check_license
|
id: check_license
|
||||||
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||||
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v6
|
uses: https://${{ secrets.CI_USER }}:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v10
|
||||||
with:
|
with:
|
||||||
input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }}
|
input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }}
|
||||||
exclude_pattern:
|
exclude_pattern:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) AVROID, Ltd., 2025
|
# Copyright (c) AVROID, Ltd., 2024
|
||||||
#
|
#
|
||||||
# You can not use the contents of the file in any way without
|
# You can not use the contents of the file in any way without
|
||||||
# AVROID, Ltd. written permission.
|
# AVROID, Ltd. written permission.
|
||||||
|
|||||||
@@ -22,12 +22,12 @@ jobs:
|
|||||||
- run: echo "Start job on ${{ runner.name }} with os ${{ runner.os }}"
|
- run: echo "Start job on ${{ runner.name }} with os ${{ runner.os }}"
|
||||||
- run: echo "Work with branch ${{ gitea.ref }} repository ${{ gitea.repository }}"
|
- run: echo "Work with branch ${{ gitea.ref }} repository ${{ gitea.repository }}"
|
||||||
- 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://${{ secrets.CI_USER }}:${{ 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 # for work tj-actions/changed-files
|
||||||
persist-credentials: false # for work tj-actions/changed-files
|
persist-credentials: false # for work tj-actions/changed-files
|
||||||
- name: Check license
|
- name: Check license
|
||||||
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1
|
uses: https://${{ secrets.CI_USER }}:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1
|
||||||
with:
|
with:
|
||||||
exclude_pattern: -ignore "**/*.go" -ignore "vendor/**"
|
exclude_pattern: -ignore "**/*.go" -ignore "vendor/**"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ IFS=' '
|
|||||||
if [ -n "$INPUT_INPUT_FILES" ]; then
|
if [ -n "$INPUT_INPUT_FILES" ]; then
|
||||||
err=0
|
err=0
|
||||||
for file in $INPUT_INPUT_FILES; do
|
for file in $INPUT_INPUT_FILES; do
|
||||||
/app/addlicense -check "$1" "$file"
|
echo /app/addlicense -check "$1" "$file" | sh
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
err=$?
|
err=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit $err
|
exit $err
|
||||||
|
|||||||
Reference in New Issue
Block a user