File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Licensed to the Apache Software Foundation (ASF) under one or more
2+ # contributor license agreements. See the NOTICE file distributed with
3+ # this work for additional information regarding copyright ownership.
4+ # The ASF licenses this file to You under the Apache License, Version 2.0
5+ # (the "License"); you may not use this file except in compliance with
6+ # the License. You may obtain a copy of the License at
7+ #
8+ # http://www.apache.org/licenses/LICENSE-2.0
9+ #
10+ # Unless required by applicable law or agreed to in writing, software
11+ # distributed under the License is distributed on an "AS IS" BASIS,
12+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ # See the License for the specific language governing permissions and
14+ # limitations under the License.
15+ name : Lint GitHub workflows
16+
17+ on :
18+ push :
19+ branches : [master]
20+ paths :
21+ - ' .github/workflows/**'
22+ pull_request :
23+ paths :
24+ - ' .github/workflows/**'
25+
26+ permissions :
27+ contents : read
28+
29+ jobs :
30+ actionlint :
31+ runs-on : ubuntu-latest
32+ steps :
33+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
34+ - name : Run actionlint
35+ run : docker run --rm -v "$PWD:/repo" -w /repo rhysd/actionlint:1.7.12 -color
Original file line number Diff line number Diff line change 4848 - name : Ensure a clean state without storm artifacts
4949 run : rm -rf ~/.m2/repository/org/apache/storm
5050 - name : Build project (compile + install, skip tests)
51- run : /bin/bash ./dev-tools/gitact/gitact-install.sh ` pwd`
51+ run : /bin/bash ./dev-tools/gitact/gitact-install.sh "$( pwd)"
5252 - name : RAT license check
5353 run : |
5454 rm -f install.txt storm-shaded-deps/install-shade.txt
9898 run : |
9999 export JDK_VERSION=${{ matrix.java }}
100100 export USER=github
101- /bin/bash ./dev-tools/gitact/gitact-test.sh ` pwd` ${{ matrix.module }};
101+ /bin/bash ./dev-tools/gitact/gitact-test.sh "$( pwd)" ${{ matrix.module }};
Original file line number Diff line number Diff line change 4848 - name : Ensure a clean state without storm artifacts
4949 run : rm -rf ~/.m2/repository/org/apache/storm
5050 - name : Set up project dependencies
51- run : /bin/bash ./dev-tools/gitact/gitact-install.sh ` pwd`
51+ run : /bin/bash ./dev-tools/gitact/gitact-install.sh "$( pwd)"
5252 - name : Package binaries
5353 run : mvn package -f storm-dist/binary/pom.xml -Dgpg.skip
5454 - name : Upload to nightlies.apache.org
Original file line number Diff line number Diff line change @@ -49,16 +49,17 @@ jobs:
4949 name : Extract project version
5050 shell : bash
5151 run : |
52+ # shellcheck disable=SC2016
5253 VERSION=$(mvn exec:exec -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive -q)
5354 if [[ "$VERSION" == *"SNAPSHOT"* ]]; then
54- echo "snapshot=SNAPSHOT" >> $GITHUB_OUTPUT
55+ echo "snapshot=SNAPSHOT" >> " $GITHUB_OUTPUT"
5556 fi
5657 - name : Ensure a clean state without storm artifacts
5758 if : steps.extract_version.outputs.snapshot == 'SNAPSHOT'
5859 run : rm -rf ~/.m2/repository/org/apache/storm
5960 - name : Set up project dependencies
6061 if : steps.extract_version.outputs.snapshot == 'SNAPSHOT'
61- run : /bin/bash ./dev-tools/gitact/gitact-install.sh ` pwd`
62+ run : /bin/bash ./dev-tools/gitact/gitact-install.sh "$( pwd)"
6263 - name : Deploy Maven snapshots
6364 if : steps.extract_version.outputs.snapshot == 'SNAPSHOT'
6465 env :
You can’t perform that action at this time.
0 commit comments