Skip to content

Commit e8c3e04

Browse files
authored
Update license-header.yml
1 parent 4d69f67 commit e8c3e04

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/license-header.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,14 @@ jobs:
1818
run: |
1919
go install github.com/google/addlicense@latest
2020
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
21-
- name: Create new branch
21+
- name: Create new branch name
2222
run: |
2323
branch_name=add-license-headers-$(date +%s)
24-
git checkout -b ${branch_name}
25-
git config --global user.name "qubership-actions[bot]"
26-
git config --global user.email "qubership-actions[bot]@users.noreply.github.com"
27-
git config pull.rebase false
28-
git pull origin main
29-
git push --set-upstream origin ${branch_name}
3024
echo "BRANCH_NAME=${branch_name}" >> $GITHUB_ENV
3125
3226
- name: Add license headers
3327
run: addlicense -c "Qubership" -l apache ./src
34-
- name: Commit changes
35-
run: |
36-
git add .
37-
git commit -m "chore: add license headers to source files" || true
38-
git push origin ${{ env.BRANCH_NAME }}
28+
3929
- name: Create Pull Request
4030
uses: peter-evans/create-pull-request@v7.0.8
4131
with:

0 commit comments

Comments
 (0)