Skip to content

Commit 3bb6df0

Browse files
authored
Update license-header.yml
1 parent 96b70ce commit 3bb6df0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/license-header.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,16 @@ jobs:
1919
run: |
2020
go install github.com/google/addlicense@latest
2121
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
22-
- name: Create new branch name
23-
run: |
24-
branch_name=add-license-headers-$(date +%s)
25-
echo "BRANCH_NAME=${branch_name}" >> $GITHUB_ENV
2622
2723
- name: Add license headers
28-
run: addlicense -v -c "Qubership" -l apache ./src
24+
run: addlicense -v -c "Qubership" -l apache -ignore ./.github/** -ignore ./* .
2925

3026
- name: Create Pull Request
3127
uses: peter-evans/create-pull-request@v7.0.8
3228
with:
3329
token: ${{ secrets.GITHUB_TOKEN }}
3430
commit-message: "chore: add license headers to source files"
35-
title: "Add license headers to source files"
31+
title: "chre: add license headers to source files"
3632
body: "This PR adds Apache license headers to all applicable source files."
37-
branch: ${{ env.BRANCH_NAME }}
33+
branch: add-license-headers
3834
base: main

0 commit comments

Comments
 (0)