diff --git a/.github/actions/gradle-command-on-pr/action.yaml b/.github/actions/gradle-command-on-pr/action.yaml index c9fdee8a4..58e18dd4e 100644 --- a/.github/actions/gradle-command-on-pr/action.yaml +++ b/.github/actions/gradle-command-on-pr/action.yaml @@ -47,7 +47,7 @@ runs: git config --global user.name 'neo-technology-build-agent' git config --global user.email 'neo-technology-build-agent@users.noreply.github.com' 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 diff --git a/.github/workflows/ChatOps.yml b/.github/workflows/ChatOps.yml index 870f8a2ac..2ba6c5524 100644 --- a/.github/workflows/ChatOps.yml +++ b/.github/workflows/ChatOps.yml @@ -14,4 +14,5 @@ jobs: reaction-token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.SERVICE_ACCOUNT_PAT }} commands: | - spotlessApply \ No newline at end of file + spotlessApply + generateLicenses \ No newline at end of file diff --git a/.github/workflows/generateLicenses-command.yml b/.github/workflows/generateLicenses-command.yml new file mode 100644 index 000000000..68f3953ed --- /dev/null +++ b/.github/workflows/generateLicenses-command.yml @@ -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 }} \ No newline at end of file