-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebase before adding files and create/update a PR
- Loading branch information
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,11 @@ jobs: | |
with: | ||
ref: auto-update-licenses | ||
|
||
- name: Rebase branch auto-update-licenses branch on main | ||
run: | | ||
git fetch origin main | ||
git rebase origin/main | ||
- name: Checkout SPDX Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
|
@@ -49,6 +54,13 @@ jobs: | |
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add cmd/ | ||
git update-index --assume-unchanged spdx-license-list-data/ # Ignore the path setup for the SPDX repository | ||
git commit -m "Add updated license files - $(date)" -a | ||
git push | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
title: "Add updated SPDX license files" | ||
body: "The files in this PR are auto-generated by the [fetch-licenses](./.git/workflows/fetch-license.yaml) workflow. It updates SPDX licenses based on the latest released set of SPDX licenses at [spdx/license-list-data](https://github.com/spdx/license-list-data) repository maintained by [SPDX](https://spdx.org). This PR updates the license files with the latest SPDX data." | ||
branch: "auto-update-licenses" |