Skip to content

Commit

Permalink
rebase before adding files and create/update a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed May 17, 2024
1 parent d8182d5 commit 516893c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/fetch-licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"

0 comments on commit 516893c

Please sign in to comment.