Skip to content

Commit

Permalink
chore(gha): update version
Browse files Browse the repository at this point in the history
  • Loading branch information
rbioteau committed May 13, 2024
1 parent 8ed994a commit f9769f3
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
target-branch: dev
schedule:
interval: "daily"
commit-message:
prefix: "chore"
include: "scope"
groups:
production-dependencies:
dependency-type: "production"
development-dependencies:
dependency-type: "development"

# Maintain dependencies for maven
- package-ecosystem: "maven"
directory: "/"
target-branch: dev
schedule:
interval: "daily"
commit-message:
prefix: "chore"
include: "scope"
groups:
production-dependencies:
dependency-type: "production"
development-dependencies:
dependency-type: "development"
48 changes: 48 additions & 0 deletions .github/workflows/_reusable_update_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Update Version

on:
workflow_call:
inputs:
version:
type: string
required: true
secrets:
KSM_CONFIG:
required: true
BONITA_CI_PAT:
required: true

jobs:
update-version:
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v4
with:
repository: bonitasoft/bonita-application-directory
ref: ${{ github.ref }}
token: ${{ secrets.BONITA_CI_PAT }}

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'

- name: Setup Maven
uses: bonitasoft/maven-settings-action@v1
with:
keeper-secret-config: ${{ secrets.KSM_CONFIG }}

- name: Update version
run: ./mvnw -B -ntp versions:set -DnewVersion=${{ inputs.version }}

- name: Git Setup
uses: bonitasoft/git-setup-action@v1
with:
keeper-secret-config: ${{ secrets.KSM_CONFIG }}

- name: Commit and push
run: |
git commit -a -m "chore(versioning): update version to ${{ inputs.version }}"
git push
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
.settings
.project
bonita-application-directory.iml

.flattened-pom.xml
pom.xml.versionsBackup

0 comments on commit f9769f3

Please sign in to comment.