Skip to content

Commit

Permalink
[NOID] Adds job to update the licenses in PRs (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncordon authored Nov 6, 2023
1 parent a95a472 commit 2c9f55a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/gradle-command-on-pr/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ runs:
git config --global user.name 'neo-technology-build-agent'
git config --global user.email '[email protected]'
git add -A
git commit -m "Run ${{ inputs.gradle-command }}"
git commit -m "[NOID] Run ${{ inputs.gradle-command }}"
- name: Push changes
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # v0.8.0
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ChatOps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ jobs:
reaction-token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.SERVICE_ACCOUNT_PAT }}
commands: |
spotlessApply
spotlessApply
generateLicenses
19 changes: 19 additions & 0 deletions .github/workflows/generateLicenses-command.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Updates license files
on:
repository_dispatch:
types: [generateLicenses-command]

jobs:
format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Format and push changes to PR
uses: ./.github/actions/gradle-command-on-pr
with:
gradle-command: generateLicenses
TEAMCITY_DEV_URL: ${{ secrets.TEAMCITY_DEV_URL }}
TEAMCITY_USER: ${{ secrets.TEAMCITY_USER }}
TEAMCITY_PASSWORD: ${{ secrets.TEAMCITY_PASSWORD }}
SERVICE_ACCOUNT_PAT: ${{ secrets.SERVICE_ACCOUNT_PAT }}

0 comments on commit 2c9f55a

Please sign in to comment.