| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| name: CI Main - Regenerate License |
| |
| on: |
| push: |
| branches: |
| - main |
| workflow_dispatch: |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| |
| steps: |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| - name: Set up JDK 25 |
| uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 |
| with: |
| java-version: '25' |
| distribution: 'temurin' |
| |
| - name: Cache Maven packages |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 |
| with: |
| path: ~/.m2 |
| key: ${{ runner.os }}-main-m2-${{ hashFiles('**/pom.xml') }} |
| restore-keys: ${{ runner.os }}-main-m2 |
| |
| - name: Build for License File Generation |
| run: mvn -U -ntp --batch-mode --show-version --fail-at-end clean install -DfailIfNoTests=false -DskipTests |
| |
| - name: Create Pull Request after License Regeneration |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 |
| with: |
| base: main |
| token: ${{ secrets.GITHUB_TOKEN }} |
| commit-message: "Minor: Regenerated License File for ${{ github.sha }}" |
| committer: GitHub <noreply@github.com> |
| author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> |
| signoff: true |
| branch: regenerate_license_file_after_dep_upgrade |
| delete-branch: true |
| title: "Regenerated License file after dependency upgrades" |
| body: | |
| Found some uncommited changes (from license regeneration) after running build on StormCrawler main |
| labels: | |
| dependency |