Skip to content

Commit

Permalink
Merge pull request #111 from geobos23/disable-sem-release-on-branches
Browse files Browse the repository at this point in the history
fix: disable semantic releases on prs
  • Loading branch information
geobos23 authored Jun 28, 2023
2 parents e54e776 + c9dc6bf commit 3389014
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 3389014

Please sign in to comment.