Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(actions): publish dependencies #82

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)