Skip to content

Commit

Permalink
try this new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudTT authored Oct 23, 2024
1 parent a90ce0d commit 7810d43
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/backend-license-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
run: |
set +e
echo "Running SPDX header script on all files in the repository"
python add_spdx_header.py
python ./scripts/add_spdx_header.py
exit 0
# Commit the changes made by `add_spdx_header.py`
Expand Down Expand Up @@ -86,3 +86,19 @@ jobs:
} else {
console.log("No SPDX license issues found.");
}
- name: Run SPDX Header Script Again
run: |
set +e
echo "Running SPDX header script again on all files in the repository"
python ./scripts/add_spdx_header.py
exit 0
# Commit the changes made by the second run of `add_spdx_header.py`
- name: Commit changes from second run
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: SPDX-Bot
commit_user_email: bot@example.com
commit_message: '🚨✨AUTOMATED COMMIT | Final SPDX license header additions'
branch: ${{ github.head_ref }}

0 comments on commit 7810d43

Please sign in to comment.