Skip to content

Commit dca5abd

Browse files
fix build script
add version in script fix script update readme fix script
1 parent de11c3f commit dca5abd

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/xcode-build.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build and Analyze
22
on:
3-
pull_request:
3+
push:
44
workflow_dispatch:
55

66
concurrency:
@@ -34,7 +34,7 @@ jobs:
3434
CODE_SIGNING_ALLOWED=NO
3535
- name: Post test results
3636
uses: kishikawakatsumi/xcresulttool@v1
37-
if: success() || failure()
37+
if: ${{ (success() || failure()) && github.event_name == 'pull_request' }}
3838
with:
3939
path: "TestResults.xcresult"
4040
title: ${{ env.test-results-check-name }}
@@ -49,18 +49,13 @@ jobs:
4949
with:
5050
name: sonarqube-generic-coverage
5151
path: sonarqube-generic-coverage.xml
52-
53-
54-
sonarcloud:
55-
name: SonarCloud scan
56-
runs-on: ubuntu-latest
57-
needs: unit-tests-run
58-
steps:
5952
- name: Checkout
6053
uses: actions/checkout@v3
6154
with:
6255
# Disabling shallow clone is recommended for improving relevancy of reporting
6356
fetch-depth: 0
57+
- name: Replace version
58+
run: sed -i '' "s/projectVersion=1.0/projectVersion=$(xcrun agvtool what-version -terse)/g" sonar-project.properties
6459
- uses: actions/download-artifact@master # download all previously generated artifacts
6560
with:
6661
name: sonarqube-generic-coverage

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# SlimHUD
66
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FAlexPerathoner%2FSlimHUD.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FAlexPerathoner%2FSlimHUD?ref=badge_shield)
77
[![CodeFactor](https://www.codefactor.io/repository/github/alexperathoner/slimhud/badge)](https://www.codefactor.io/repository/github/alexperathoner/slimhud)
8-
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=AlexPerathoner_SlimHUD&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=AlexPerathoner_SlimHUD)
8+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=alexpera_slimhud&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=alexpera_slimhud)
99

1010

1111
Replacement for MacOS' HUDs.

0 commit comments

Comments
 (0)