Skip to content

Commit 4d69f67

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/license-header.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ jobs:
2727
git config pull.rebase false
2828
git pull origin main
2929
git push --set-upstream origin ${branch_name}
30+
echo "BRANCH_NAME=${branch_name}" >> $GITHUB_ENV
31+
3032
- name: Add license headers
3133
run: addlicense -c "Qubership" -l apache ./src
3234
- name: Commit changes
3335
run: |
3436
git add .
3537
git commit -m "chore: add license headers to source files" || true
36-
git push origin ${branch_name}
37-
echo "BRANCH_NAME=${branch_name}" >> $GITHUB_ENV
38+
git push origin ${{ env.BRANCH_NAME }}
3839
- name: Create Pull Request
3940
uses: peter-evans/create-pull-request@v7.0.8
4041
with:

0 commit comments

Comments
 (0)