Skip to content

Commit

Permalink
Use help:evaluate for extracting Maven properties
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrimes committed Dec 1, 2023
1 parent 4e9d323 commit 96265db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ jobs:
restore-keys: r-packages-${{ runner.os }}-
- name: Extract Spark version
working-directory: lib/R
run: echo "SPARK_VERSION=$(awk -F'[<>]' '/<pathling.Rapi.sparkVersion>/ {print $3}' pom.xml)" >> $GITHUB_ENV
run: echo "SPARK_VERSION=$(mvn help:evaluate -Dexpression=pathling.Rapi.sparkVersion -q -DforceStdout)" >> $GITHUB_ENV
- name: Extract Hadoop version
working-directory: lib/R
run: echo "HADOOP_VERSION=$(awk -F'[<>]' '/<pathling.Rapi.hadoopVersion>/ {print $3}' pom.xml)" >> $GITHUB_ENV
run: echo "HADOOP_VERSION=$(mvn help:evaluate -Dexpression=pathling.Rapi.hadoopVersion -q -DforceStdout)" >> $GITHUB_ENV
- name: Cache Spark
id: cache-spark
uses: actions/cache@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
${{ runner.os }}-maven-
- name: Extract Spark version
working-directory: lib/R
run: echo "SPARK_VERSION=$(awk -F'[<>]' '/<pathling.Rapi.sparkVersion>/ {print $3}' pom.xml)" >> $GITHUB_ENV
run: echo "SPARK_VERSION=$(mvn help:evaluate -Dexpression=pathling.Rapi.sparkVersion -q -DforceStdout)" >> $GITHUB_ENV
- name: Extract Hadoop version
working-directory: lib/R
run: echo "HADOOP_VERSION=$(awk -F'[<>]' '/<pathling.Rapi.hadoopVersion>/ {print $3}' pom.xml)" >> $GITHUB_ENV
run: echo "HADOOP_VERSION=$(mvn help:evaluate -Dexpression=pathling.Rapi.hadoopVersion -q -DforceStdout)" >> $GITHUB_ENV
- name: Cache Spark
id: cache-spark
uses: actions/cache@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,10 @@ jobs:
restore-keys: r-packages-${{ runner.os }}-
- name: Extract Spark version
working-directory: lib/R
run: echo "SPARK_VERSION=$(awk -F'[<>]' '/<pathling.Rapi.sparkVersion>/ {print $3}' pom.xml)" >> $GITHUB_ENV
run: echo "SPARK_VERSION=$(mvn help:evaluate -Dexpression=pathling.Rapi.sparkVersion -q -DforceStdout)" >> $GITHUB_ENV
- name: Extract Hadoop version
working-directory: lib/R
run: echo "HADOOP_VERSION=$(awk -F'[<>]' '/<pathling.Rapi.hadoopVersion>/ {print $3}' pom.xml)" >> $GITHUB_ENV
run: echo "HADOOP_VERSION=$(mvn help:evaluate -Dexpression=pathling.Rapi.hadoopVersion -q -DforceStdout)" >> $GITHUB_ENV
- name: Cache Spark
id: cache-spark
uses: actions/cache@v2
Expand Down Expand Up @@ -677,10 +677,10 @@ jobs:
${{ runner.os }}-maven-
- name: Extract Spark version
working-directory: lib/R
run: echo "SPARK_VERSION=$(awk -F'[<>]' '/<pathling.Rapi.sparkVersion>/ {print $3}' pom.xml)" >> $GITHUB_ENV
run: echo "SPARK_VERSION=$(mvn help:evaluate -Dexpression=pathling.Rapi.sparkVersion -q -DforceStdout)" >> $GITHUB_ENV
- name: Extract Hadoop version
working-directory: lib/R
run: echo "HADOOP_VERSION=$(awk -F'[<>]' '/<pathling.Rapi.hadoopVersion>/ {print $3}' pom.xml)" >> $GITHUB_ENV
run: echo "HADOOP_VERSION=$(mvn help:evaluate -Dexpression=pathling.Rapi.hadoopVersion -q -DforceStdout)" >> $GITHUB_ENV
- name: Cache Spark
id: cache-spark
uses: actions/cache@v2
Expand Down

0 comments on commit 96265db

Please sign in to comment.