Skip to content

Commit 056d347

Browse files
authored
Merge pull request #9305 from apache/actionlint-workflow
Actionlint workflow
2 parents 1b9abe0 + 9497364 commit 056d347

4 files changed

Lines changed: 41 additions & 5 deletions

File tree

‎.github/workflows/actionlint.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

‎.github/workflows/maven.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
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
@@ -98,4 +98,4 @@ jobs:
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 }};

‎.github/workflows/nightlies.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
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

‎.github/workflows/snapshots.yaml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)