Skip to content

Commit e98ce4f

Browse files
committed
Rollback styling for github workflows
1 parent 9b21781 commit e98ce4f

File tree

1 file changed

+70
-70
lines changed

1 file changed

+70
-70
lines changed

.github/workflows/pull-request-check.yml

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -8,80 +8,80 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v3
11+
- name: Checkout
12+
uses: actions/checkout@v3
1313

14-
- id: changed_files
15-
name: Get changed files
16-
uses: jitterbit/get-changed-files@v1
14+
- id: changed_files
15+
name: Get changed files
16+
uses: jitterbit/get-changed-files@v1
1717

18-
# Determine whether the PR makes _only_ changes to the markdown files in
19-
# documentation/decisions: If this is the case, a full build is not
20-
# necessary. It will set the ONLY_MD environment variable to 'true' if
21-
# only such .md files where changed and to 'false' if something else was
22-
# changed (and a full build should run).
23-
#
24-
# Note that it is currently impossible to return early from an actions job
25-
# with a successful status, which is why the repeated 'if's in the
26-
# subsequent steps are necessary: https://github.com/actions/runner/issues/662
27-
- id: only_md_changes
28-
name: Check for .md changes
29-
run: |
30-
for changed_file in ${{ steps.changed_files.outputs.all }}; do
31-
if [[ ! "$changed_file" =~ "documentation/decisions/" ]]; then
32-
echo "ONLY_MD=false" >> "$GITHUB_ENV"
33-
echo "Encountered $changed_file, build is necessary"
34-
exit 0
35-
fi
36-
done
37-
echo "ONLY_MD=true" >> "$GITHUB_ENV"
18+
# Determine whether the PR makes _only_ changes to the markdown files in
19+
# documentation/decisions: If this is the case, a full build is not
20+
# necessary. It will set the ONLY_MD environment variable to 'true' if
21+
# only such .md files where changed and to 'false' if something else was
22+
# changed (and a full build should run).
23+
#
24+
# Note that it is currently impossible to return early from an actions job
25+
# with a successful status, which is why the repeated 'if's in the
26+
# subsequent steps are necessary: https://github.com/actions/runner/issues/662
27+
- id: only_md_changes
28+
name: Check for .md changes
29+
run: |
30+
for changed_file in ${{ steps.changed_files.outputs.all }}; do
31+
if [[ ! "$changed_file" =~ "documentation/decisions/" ]]; then
32+
echo "ONLY_MD=false" >> "$GITHUB_ENV"
33+
echo "Encountered $changed_file, build is necessary"
34+
exit 0
35+
fi
36+
done
37+
echo "ONLY_MD=true" >> "$GITHUB_ENV"
3838
39-
- name: Set up JDK 21
40-
id: setup-java
41-
uses: actions/setup-java@v4
42-
if: env.ONLY_MD != 'true'
43-
with:
44-
distribution: 'temurin'
45-
java-version: '21'
39+
- name: Set up JDK 21
40+
id: setup-java
41+
uses: actions/setup-java@v4
42+
if: env.ONLY_MD != 'true'
43+
with:
44+
distribution: 'temurin'
45+
java-version: '21'
4646

47-
- name: Cache Maven packages
48-
uses: actions/cache@v3
49-
if: env.ONLY_MD != 'true'
50-
with:
51-
path: ~/.m2/repository
52-
key: maven-${{ hashFiles('**/pom.xml') }}
47+
- name: Cache Maven packages
48+
uses: actions/cache@v3
49+
if: env.ONLY_MD != 'true'
50+
with:
51+
path: ~/.m2/repository
52+
key: maven-${{ hashFiles('**/pom.xml') }}
5353

54-
- name: Cache node and node_modules
55-
uses: actions/cache@v3
56-
if: env.ONLY_MD != 'true'
57-
with:
58-
path: |
59-
documentation/node
60-
documentation/node_modules
61-
key: node-${{ hashFiles('documentation/package-lock.json') }}
54+
- name: Cache node and node_modules
55+
uses: actions/cache@v3
56+
if: env.ONLY_MD != 'true'
57+
with:
58+
path: |
59+
documentation/node
60+
documentation/node_modules
61+
key: node-${{ hashFiles('documentation/package-lock.json') }}
6262

63-
- name: Build
64-
if: env.ONLY_MD != 'true'
65-
run: |
66-
export JAVA_HOME=${{ steps.setup-java.outputs.path }}
67-
export PATH=$JAVA_HOME/bin:$PATH
68-
echo "Using Java version:"
69-
java -version
70-
echo "JAVA_HOME: $JAVA_HOME"
71-
echo "Maven Java version:"
72-
./mvnw --version
73-
./mvnw -B generate-resources -pl documentation -Pantora
74-
./mvnw -B clean install -pl esmf-samm-build-plugin
75-
./mvnw -B clean package -pl esmf-semantic-aspect-meta-model
76-
cd build/
77-
mv site SAMM-snapshot
78-
zip -r ../SAMM-snapshot-specification.zip SAMM-snapshot
63+
- name: Build
64+
if: env.ONLY_MD != 'true'
65+
run: |
66+
export JAVA_HOME=${{ steps.setup-java.outputs.path }}
67+
export PATH=$JAVA_HOME/bin:$PATH
68+
echo "Using Java version:"
69+
java -version
70+
echo "JAVA_HOME: $JAVA_HOME"
71+
echo "Maven Java version:"
72+
./mvnw --version
73+
./mvnw -B generate-resources -pl documentation -Pantora
74+
./mvnw -B clean install -pl esmf-samm-build-plugin
75+
./mvnw -B clean package -pl esmf-semantic-aspect-meta-model
76+
cd build/
77+
mv site SAMM-snapshot
78+
zip -r ../SAMM-snapshot-specification.zip SAMM-snapshot
7979
80-
- name: Upload build artifacts
81-
uses: actions/upload-artifact@v4
82-
if: env.ONLY_MD != 'true'
83-
with:
84-
name: samm-artifacts
85-
path: |
86-
esmf-semantic-aspect-meta-model/target/*.jar
87-
SAMM-*-specification.zip
80+
- name: Upload build artifacts
81+
uses: actions/upload-artifact@v4
82+
if: env.ONLY_MD != 'true'
83+
with:
84+
name: samm-artifacts
85+
path: |
86+
esmf-semantic-aspect-meta-model/target/*.jar
87+
SAMM-*-specification.zip

0 commit comments

Comments
 (0)