Skip to content

Commit e1ac2f4

Browse files
authored
ci: sanitize the workflow file (#1747)
1 parent 4ab2587 commit e1ac2f4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/maven.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,16 @@ jobs:
8585
sudo mvn -ntp -U -f src/test/greengrass-nucleus-benchmark install
8686
if: matrix.os == 'ubuntu-latest'
8787
- name: Save PR number
88+
env:
89+
PR_NUMBER: ${{ github.event.number }}
90+
PR_SHA: ${{ github.event.pull_request.head.sha }}
8891
run: |
8992
mkdir -p ./pr/jacoco-report
9093
mkdir -p ./pr/japicmp
9194
mkdir -p target/japicmp
9295
mkdir -p target/jacoco-report
93-
echo ${{ github.event.number }} > ./pr/NR
94-
echo ${{ github.event.pull_request.head.sha }} > ./pr/SHA
96+
echo "$PR_NUMBER" > ./pr/NR
97+
echo "$PR_SHA" > ./pr/SHA
9598
cp -R target/japicmp/default-cli.xml ./pr/japicmp/default-cli.xml
9699
cp target/jacoco-report/cobertura.xml ./pr/jacoco-report/cobertura.xml
97100
cp target/jacoco-report/cobertura-it.xml ./pr/jacoco-report/cobertura-it.xml

0 commit comments

Comments
 (0)