Skip to content

Commit

Permalink
Merge pull request #29 from bancolombia/feature/update-actions
Browse files Browse the repository at this point in the history
ci(conditions): Add commit with github app and skip condition when automatic release
  • Loading branch information
juancgalvis committed May 6, 2024
2 parents 0ab476c + 8f80444 commit f2c5b31
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/gradle.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 All @@ -37,15 +38,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up NodeJS
if: github.ref == 'refs/heads/master' # especificar rama principal
if: github.ref == 'refs/heads/master'
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Set up Semantic Release
if: github.ref == 'refs/heads/master' # especificar rama principal
if: github.ref == 'refs/heads/master'
run: npm -g install @semantic-release/git semantic-release@23.0.0
- name: Semantic Release
if: github.ref == 'refs/heads/master' # especificar rama principal
if: github.ref == 'refs/heads/master'
run: npx semantic-release@23.0.0
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
uses: github-actions-x/commit@v2.9
with:
github-token: ${{ steps.generate_token.outputs.token }}
push-branch: "master" # Set the correct branch
commit-message: 'docs(version): Update version to ${{ env.RELEASE_VERSION }}' # Change RELEASE_VERSION by your own or none
push-branch: "master"
commit-message: 'docs(version): Update version to ${{ env.RELEASE_VERSION }} [skip ci]'
force-add: "true"
force-push: "true"
files: CHANGELOG.md gradle.properties # List of changed files
files: CHANGELOG.md gradle.properties
name: Release Bot
email: release-bot@bancolombia.com.co

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 f2c5b31

Please sign in to comment.