Skip to content

Merge pull request #8910 from apache/dependabot/npm_and_yarn/storm-we… #440

Merge pull request #8910 from apache/dependabot/npm_and_yarn/storm-we…

Merge pull request #8910 from apache/dependabot/npm_and_yarn/storm-we… #440

# 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: Update License Files
on:
push:
branches: [ "master" ]
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-license-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.10'
- name: Set up JDK 25
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: temurin
java-version: 25
- name: Ensure clean state without storm artifacts
run: rm -rf ~/.m2/repository/org/apache/storm
- name: Build Storm
run: mvn clean install -B -DskipTests -Dcheckstyle.skip -Dpmd.skip
env:
MAVEN_OPTS: -Xmx2048m
- name: Update license files
run: python3 dev-tools/update-license-files.py --skip-build-storm
- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Regenerate license files after dependency changes"
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: true
branch: update-license-files
delete-branch: true
title: "[Automated] Update license files after dependency changes"
body: |
This PR was automatically generated after a push to master caused
license files to become out of date.
Updated files:
- `DEPENDENCY-LICENSES`
- `LICENSE-binary` (binary dependencies section)
Please review the changes and merge if correct.
labels: |
dependencies
skip-changelog