Skip to content

Commit

Permalink
fix: disable semantic releases on prs
Browse files Browse the repository at this point in the history
Only keep these for master branch
Temp disable sonarqube scan on prs, currently it's broken due to broken
settings
  • Loading branch information
geobos23 committed Jun 28, 2023
1 parent e54e776 commit c9dc6bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/pr-sonar.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Sonarqube scanner
on:
pull_request:
push:
branches:
- master
Expand All @@ -22,4 +21,4 @@ jobs:
client-cert: ${{ secrets.MTLS_CERT }}
client-key: ${{ secrets.MTLS_KEY }}
token: ${{ secrets.SONAR_TOKEN }}
host: "https://sonar.ts.sv"

0 comments on commit c9dc6bf

Please sign in to comment.