From c9dc6bf0decefc359500434159ead155be36709b Mon Sep 17 00:00:00 2001 From: Geo Bosincianu Date: Wed, 28 Jun 2023 18:46:49 +0300 Subject: [PATCH] fix: disable semantic releases on prs Only keep these for master branch Temp disable sonarqube scan on prs, currently it's broken due to broken settings --- .github/workflows/commit-lint.yml | 24 ++++++++++++++---------- .github/workflows/pr-sonar.yml | 3 +-- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index 4c73322..e5f4c6e 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -5,17 +5,21 @@ jobs: semantic-release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Dry-run release - uses: tradeshift/actions-semantic-release@v1 - id: semantic-release - with: - dry_run: true - check_name: Semantic release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Dry-run release + # uses: tradeshift/actions-semantic-release@v1 + # id: semantic-release + # with: + # branches: | + # [ + # 'master' + # ] + # dry_run: true + # check_name: Semantic release + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Lint commit messages uses: tradeshift/commitlint-github-action@v3 diff --git a/.github/workflows/pr-sonar.yml b/.github/workflows/pr-sonar.yml index 1a13dd2..2f614d8 100644 --- a/.github/workflows/pr-sonar.yml +++ b/.github/workflows/pr-sonar.yml @@ -1,6 +1,5 @@ name: Sonarqube scanner on: - pull_request: push: branches: - master @@ -22,4 +21,4 @@ jobs: client-cert: ${{ secrets.MTLS_CERT }} client-key: ${{ secrets.MTLS_KEY }} token: ${{ secrets.SONAR_TOKEN }} - host: "https://sonar.ts.sv" + \ No newline at end of file