Skip to content

Commit

Permalink
fix(conditions): Add commit with github app and skip condition when a…
Browse files Browse the repository at this point in the history
…utomatic release
  • Loading branch information
juancgalvis committed May 6, 2024
1 parent eedd990 commit 91038d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:

jobs:
build:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
permissions:
contents: write
issues: write
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
uses: github-actions-x/commit@v2.9
with:
github-token: ${{ steps.generate_token.outputs.token }}
push-branch: "main" # Set the correct branch
commit-message: 'docs(version): Update version to ${{ env.RELEASE_VERSION }}' # Change RELEASE_VERSION by your own or none
push-branch: "main"
commit-message: 'Update version to ${{ env.RELEASE_VERSION }} [skip ci]'
force-add: "true"
force-push: "true"
files: CHANGELOG.md gradle.properties
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions: read-all

jobs:
analysis:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
name: Scorecards analysis
runs-on: ubuntu-latest
permissions:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/secret-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ permissions:

jobs:
TruffleHog:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest
steps:
- name: Harden Runner
Expand Down

0 comments on commit 91038d2

Please sign in to comment.