diff --git a/.github/workflows/initializr-cn1-version-pr.yml b/.github/workflows/initializr-cn1-version-pr.yml index 85f2d59d86..f56ab2c92b 100644 --- a/.github/workflows/initializr-cn1-version-pr.yml +++ b/.github/workflows/initializr-cn1-version-pr.yml @@ -3,8 +3,10 @@ name: Initializr CN1 Version PR on: push: tags: - - "v*" - - "[0-9]*" + - "*" + release: + types: + - published permissions: contents: write @@ -18,21 +20,22 @@ jobs: uses: actions/checkout@v4 - name: Update Initializr Codename One versions - run: ./scripts/initializr/update-cn1-version.sh "${GITHUB_REF_NAME}" + run: ./scripts/initializr/update-cn1-version.sh "${{ github.event.release.tag_name || github.ref_name }}" - name: Create pull request uses: peter-evans/create-pull-request@v6 with: - commit-message: "scripts/initializr: bump Codename One versions to ${{ github.ref_name }}" - title: "scripts/initializr: bump Codename One versions to ${{ github.ref_name }}" + commit-message: "scripts/initializr: bump Codename One versions to ${{ github.event.release.tag_name || github.ref_name }}" + title: "scripts/initializr: bump Codename One versions to ${{ github.event.release.tag_name || github.ref_name }}" body: | - Automated update of Codename One versions in `scripts/initializr` after release `${{ github.ref_name }}`. + Automated update of Codename One versions in `scripts/initializr` after release `${{ github.event.release.tag_name || github.ref_name }}`. Updated: - All `scripts/initializr/**/pom.xml` files containing `cn1.plugin.version` - `scripts/initializr/common/src/main/java/com/codename1/initializr/model/GeneratorModel.java` - `scripts/initializr/common/src/test/java/com/codename1/initializr/model/GeneratorModelMatrixTest.java` - branch: automation/initializr-cn1-version-${{ github.ref_name }} + - Embedded root `pom.xml` in `scripts/initializr/common/src/main/resources/common.zip` + branch: automation/initializr-cn1-version-${{ github.event.release.tag_name || github.ref_name }} delete-branch: true labels: | automation diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6a3f57813c..05b87661ef 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,6 +13,7 @@ on: - '**/*.md' - '.github/workflows/developer-guide-docs.yml' - '.github/workflows/website-docs.yml' + - '.github/workflows/initializr-cn1-version-pr.yml' - 'CodenameOneDesigner/**' - 'Ports/IOSPort/**' push: @@ -27,6 +28,7 @@ on: - '**/*.md' - '.github/workflows/developer-guide-docs.yml' - '.github/workflows/website-docs.yml' + - '.github/workflows/initializr-cn1-version-pr.yml' - 'CodenameOneDesigner/**' - 'Ports/IOSPort/**' diff --git a/.github/workflows/website-docs.yml b/.github/workflows/website-docs.yml index f79b69b4d1..5c1331c3da 100644 --- a/.github/workflows/website-docs.yml +++ b/.github/workflows/website-docs.yml @@ -5,12 +5,14 @@ on: types: [opened, synchronize, reopened, ready_for_review] paths: - 'docs/website/**' + - 'scripts/initializr/**' - 'scripts/website/**' - '.github/workflows/website-docs.yml' push: branches: [main, master] paths: - 'docs/website/**' + - 'scripts/initializr/**' - 'scripts/website/**' - '.github/workflows/website-docs.yml' workflow_dispatch: diff --git a/docs/website/layouts/_default/initializr.html b/docs/website/layouts/_default/initializr.html index 57a0a739cc..59020568bb 100644 --- a/docs/website/layouts/_default/initializr.html +++ b/docs/website/layouts/_default/initializr.html @@ -20,12 +20,30 @@