Skip to content

Commit

Permalink
chore(actions): publish dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rbioteau committed Dec 20, 2023
1 parent 524b31e commit a74102b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/publish-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish Dependencies List

on:
workflow_dispatch:
inputs:
gitRef:
type: string
required: true

jobs:
build:
name: Publication pipeline
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.gitRef }}

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

- name: Build dependencies list
run: ./mvnw -ntp -B initialize -Pdependencies

- name: Clone bonita-doc repository
uses: actions/checkout@v4
with:
repository: bonitasoft/bonita-doc
path: bonita-doc

- name: Prepare Pull Request
run: cp target/bonita-data-repository-dependencies.adoc bonita-doc/modules/ROOT/pages/

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
id: create-pr
with:
path: bonita-doc
add-paths: bonita-doc/modules/ROOT/pages/bonita-data-repository-dependencies.adoc
branch: feat/update_bdr_dependencies_list
base: ${{ github.ref_name }}
commit-message: "docs(bdr): List dependencies for version ${{ github.event.gitRef }}"
title: "docs(bdr): List dependencies for version ${minorVersion}"
body: |
Update dependencies list of [Bonita Data Repository](https://github.com/bonitasoft/bonita-data-repository)

0 comments on commit a74102b

Please sign in to comment.