Skip to content

Commit 723344f

Browse files
committed
fix: add input var
1 parent 49958c5 commit 723344f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,23 @@ jobs:
3434
needs: set-deps-dotnet-poop-here
3535
env:
3636
SEMVER: ${{ needs.set-deps-dotnet-poop-here.outputs.semVer }}
37+
GIT_TAG: ${{ needs.set-deps-dotnet-poop-here.outputs.semVer }}
3738
GOVCS: false
3839
steps:
3940
- uses: actions/checkout@v3
4041
with:
4142
fetch-depth: 0
4243
- name: install deps
4344
run: |
44-
apt update && apt install jq -y
45+
apt update && apt install -y jq git
4546
make REVISION=$GITHUB_SHA install
4647
- name: make test
4748
run: |
48-
echo $PWD
49+
echo $PWD
4950
ls -lat
5051
git config user.email ${{ github.actor }}[email protected]
5152
git config user.name ${{ github.actor }}
52-
make GIT_TAG=$SEMVER REVISION=$GITHUB_SHA test
53+
make REVISION=$GITHUB_SHA test
5354
- name: Publish Junit style Test Report
5455
uses: mikepenz/action-junit-report@v3
5556
if: always() # always run even if the previous step fails
@@ -59,13 +60,14 @@ jobs:
5960
# You can pin the exact commit or the version.
6061
uses: SonarSource/sonarcloud-github-action@master
6162
env:
63+
SEMVER: $SEMVER
6264
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
6365
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
6466
with:
6567
# Additional arguments for the sonarcloud scanner
6668
args:
6769
# mandatory
68-
-Dsonar.projectVersion=$SEMVER
70+
-Dsonar.projectVersion=${{ needs.set-deps-dotnet-poop-here.outputs.semVer }}
6971
-Dsonar.go.coverage.reportPaths=/github/workspace/.coverage/out
7072
-Dsonar.go.tests.reportPaths=/github/workspace/.coverage/report-junit.xml
7173
-X

0 commit comments

Comments
 (0)