From e16ca28884c126a4c2c4e0f4bd5eb930687a1cf0 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Mon, 9 Dec 2024 11:22:55 -0500 Subject: [PATCH 01/21] Add composite action from instance --- .github/workflows/preview-build.yml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/preview-build.yml diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml new file mode 100644 index 000000000..478adedc6 --- /dev/null +++ b/.github/workflows/preview-build.yml @@ -0,0 +1,44 @@ +name: Preview build +description: 'Build the preview with UI version number' + +on: + workflow_dispatch: + +inputs: + ui-version: + required: true + default: 'v5.11.0' + +runs: + using: "composite" + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + submodules: true + + - name: git config + run: | + git config user.name "${GITHUB_ACTOR}" + git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + - name: Update Submodule + run: | + git submodule update --init --recursive + cd .veda/ui + git fetch --all + git checkout ${{ github.event.inputs.ui-version }} + cd - + git add .veda/ui + git commit -m "Update submodule to version ${{ github.event.inputs.ui-version }}" + + - name: Push Changes + run: | + git checkout -b ${{ github.event.inputs.ui-version }} + git push origin ${{ github.event.inputs.ui-version }} + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + title: "Update submodule to version ${{ github.event.inputs.ui-version }}" + body: "This PR updates the submodule to version `${{ github.event.inputs.ui-version }}`." + branch: ${{ github.event.inputs.ui-version }} \ No newline at end of file From fd164ad9d418b20d256def3a1f1846cd0346a348 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Mon, 9 Dec 2024 11:36:32 -0500 Subject: [PATCH 02/21] Redo github action --- .github/workflows/preview-build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 478adedc6..f7e27207d 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -1,8 +1,4 @@ -name: Preview build -description: 'Build the preview with UI version number' - -on: - workflow_dispatch: +name: Preview build with VEDA UI inputs: ui-version: @@ -15,7 +11,11 @@ runs: - name: Checkout Repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive + - name: Use Node.js ${{ env.NODE }} + uses: actions/setup-node@v1 + with: + node-version: ${{ env.NODE }} - name: git config run: | From c1d092cf5b906a0319eaa7fcccdef48a562f99ca Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Mon, 9 Dec 2024 11:39:35 -0500 Subject: [PATCH 03/21] Move preview deploy file --- .github/{workflows => preview-build}/preview-build.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => preview-build}/preview-build.yml (100%) diff --git a/.github/workflows/preview-build.yml b/.github/preview-build/preview-build.yml similarity index 100% rename from .github/workflows/preview-build.yml rename to .github/preview-build/preview-build.yml From 1c1bbdb955795cdb0219660bd9c9f9c48d3339c9 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Mon, 9 Dec 2024 13:51:10 -0500 Subject: [PATCH 04/21] Change action file name --- .github/preview-build/{preview-build.yml => action.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/preview-build/{preview-build.yml => action.yml} (100%) diff --git a/.github/preview-build/preview-build.yml b/.github/preview-build/action.yml similarity index 100% rename from .github/preview-build/preview-build.yml rename to .github/preview-build/action.yml From bcf47d03c54e05fda623c86efe84adfbcb2080f0 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Mon, 9 Dec 2024 14:01:33 -0500 Subject: [PATCH 05/21] Specify shell --- .github/preview-build/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/preview-build/action.yml b/.github/preview-build/action.yml index f7e27207d..54abddd26 100644 --- a/.github/preview-build/action.yml +++ b/.github/preview-build/action.yml @@ -18,10 +18,12 @@ runs: node-version: ${{ env.NODE }} - name: git config + shell: bash run: | git config user.name "${GITHUB_ACTOR}" git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" - name: Update Submodule + shell: bash run: | git submodule update --init --recursive cd .veda/ui @@ -32,11 +34,13 @@ runs: git commit -m "Update submodule to version ${{ github.event.inputs.ui-version }}" - name: Push Changes + shell: bash run: | git checkout -b ${{ github.event.inputs.ui-version }} git push origin ${{ github.event.inputs.ui-version }} - name: Create Pull Request + shell: bash uses: peter-evans/create-pull-request@v6 with: title: "Update submodule to version ${{ github.event.inputs.ui-version }}" From 26db63f4649cc6fe59a23b6f4851583158a73b93 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Mon, 9 Dec 2024 14:27:40 -0500 Subject: [PATCH 06/21] Update PR action --- .github/preview-build/action.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/preview-build/action.yml b/.github/preview-build/action.yml index 54abddd26..77e5604e2 100644 --- a/.github/preview-build/action.yml +++ b/.github/preview-build/action.yml @@ -5,6 +5,10 @@ inputs: required: true default: 'v5.11.0' +permissions: + contents: write + pull-requests: write + runs: using: "composite" steps: @@ -40,9 +44,9 @@ runs: git push origin ${{ github.event.inputs.ui-version }} - name: Create Pull Request - shell: bash - uses: peter-evans/create-pull-request@v6 + uses: peter-evans/create-pull-request@v7 with: + commit-message: "Update UI to ${{ github.event.inputs.ui-version }}" title: "Update submodule to version ${{ github.event.inputs.ui-version }}" body: "This PR updates the submodule to version `${{ github.event.inputs.ui-version }}`." - branch: ${{ github.event.inputs.ui-version }} \ No newline at end of file + branch: update-${{ github.event.inputs.ui-version }} \ No newline at end of file From ac8e0d80a4d28e6e939230cd82a2c90cdce24ed7 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Mon, 9 Dec 2024 14:31:57 -0500 Subject: [PATCH 07/21] Use relative path --- .github/preview-build/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/preview-build/action.yml b/.github/preview-build/action.yml index 77e5604e2..16f5d0098 100644 --- a/.github/preview-build/action.yml +++ b/.github/preview-build/action.yml @@ -30,7 +30,7 @@ runs: shell: bash run: | git submodule update --init --recursive - cd .veda/ui + cd ./.veda/ui git fetch --all git checkout ${{ github.event.inputs.ui-version }} cd - From 385fbcc3cf4d0eaa6f655eb6ecce75a9c1d066cf Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Mon, 9 Dec 2024 16:03:20 -0500 Subject: [PATCH 08/21] Use dispatch event --- .../preview-build.yml} | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) rename .github/{preview-build/action.yml => workflows/preview-build.yml} (61%) diff --git a/.github/preview-build/action.yml b/.github/workflows/preview-build.yml similarity index 61% rename from .github/preview-build/action.yml rename to .github/workflows/preview-build.yml index 16f5d0098..9059e772b 100644 --- a/.github/preview-build/action.yml +++ b/.github/workflows/preview-build.yml @@ -1,26 +1,27 @@ name: Preview build with VEDA UI -inputs: - ui-version: - required: true - default: 'v5.11.0' +on: + repository_dispatch: + types: [update-version] permissions: contents: write pull-requests: write -runs: - using: "composite" - steps: +jobs: + makepr: + runs-on: ubuntu-latest + steps: - name: Checkout Repository uses: actions/checkout@v4 with: submodules: recursive + ref: ${{ github.event.client_payload.ref }} - name: Use Node.js ${{ env.NODE }} uses: actions/setup-node@v1 with: node-version: ${{ env.NODE }} - + - name: git config shell: bash run: | @@ -30,23 +31,23 @@ runs: shell: bash run: | git submodule update --init --recursive + git submodule update --recursive --remote + ls cd ./.veda/ui git fetch --all - git checkout ${{ github.event.inputs.ui-version }} + git checkout ${{ github.event.client_payload.VERSION_NUMBER }} cd - git add .veda/ui - git commit -m "Update submodule to version ${{ github.event.inputs.ui-version }}" - + git commit -m "Update submodule to version ${{ github.event.client_payload.VERSION_NUMBER }}" - name: Push Changes - shell: bash - run: | + run: | git checkout -b ${{ github.event.inputs.ui-version }} git push origin ${{ github.event.inputs.ui-version }} - name: Create Pull Request uses: peter-evans/create-pull-request@v7 with: - commit-message: "Update UI to ${{ github.event.inputs.ui-version }}" - title: "Update submodule to version ${{ github.event.inputs.ui-version }}" - body: "This PR updates the submodule to version `${{ github.event.inputs.ui-version }}`." - branch: update-${{ github.event.inputs.ui-version }} \ No newline at end of file + commit-message: "Update UI to ${{ github.event.client_payload.VERSION_NUMBER }}" + title: "Update submodule to version ${{ github.event.client_payload.VERSION_NUMBER }}" + body: "This PR updates the submodule to version `${{ github.event.client_payload.VERSION_NUMBER }}`." + branch: update-to-${{ github.event.client_payload.VERSION_NUMBER }} \ No newline at end of file From ff36416510364c0c0f5763c8a92361ed0baca2a4 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 12:09:45 -0500 Subject: [PATCH 09/21] Add workflow dispatch for testing --- .github/workflows/preview-build.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 9059e772b..c169a34ff 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -1,6 +1,10 @@ name: Preview build with VEDA UI on: + workflow_dispatch: + inputs: + VERSION_NUMBER: + default: 'v5.11.0' repository_dispatch: types: [update-version] @@ -21,6 +25,10 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ env.NODE }} + + - name: Set Version Variable + id: set-version + run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || inputs.VERSION_NUMBER }}" >> $GITHUB_ENV - name: git config shell: bash @@ -35,19 +43,19 @@ jobs: ls cd ./.veda/ui git fetch --all - git checkout ${{ github.event.client_payload.VERSION_NUMBER }} + git checkout ${{ env.VERSION }} cd - git add .veda/ui - git commit -m "Update submodule to version ${{ github.event.client_payload.VERSION_NUMBER }}" + git commit -m "Update submodule to version ${{ env.VERSION }}" - name: Push Changes run: | - git checkout -b ${{ github.event.inputs.ui-version }} - git push origin ${{ github.event.inputs.ui-version }} + git checkout -b ${{ env.VERSION }} + git push origin ${{ env.VERSION }} - name: Create Pull Request uses: peter-evans/create-pull-request@v7 with: - commit-message: "Update UI to ${{ github.event.client_payload.VERSION_NUMBER }}" - title: "Update submodule to version ${{ github.event.client_payload.VERSION_NUMBER }}" - body: "This PR updates the submodule to version `${{ github.event.client_payload.VERSION_NUMBER }}`." - branch: update-to-${{ github.event.client_payload.VERSION_NUMBER }} \ No newline at end of file + commit-message: "Update UI to ${{ env.VERSION }}" + title: "Update submodule to version${{ env.VERSION }}" + body: "This PR updates the submodule to version `${{ env.VERSION }}`." + branch: update-to-${{ env.VERSION }} \ No newline at end of file From 2b05da4b7416e5c457e7cc41fda6e9f8cc925c03 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 12:51:54 -0500 Subject: [PATCH 10/21] Disable inputs for temp --- .github/workflows/preview-build.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index c169a34ff..3992ba817 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -2,9 +2,6 @@ name: Preview build with VEDA UI on: workflow_dispatch: - inputs: - VERSION_NUMBER: - default: 'v5.11.0' repository_dispatch: types: [update-version] From af9819238d351be898d1c35c95f19f267fbdb6cf Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 12:53:46 -0500 Subject: [PATCH 11/21] Rename action --- .github/workflows/{preview-build.yml => build-preview.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{preview-build.yml => build-preview.yml} (100%) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/build-preview.yml similarity index 100% rename from .github/workflows/preview-build.yml rename to .github/workflows/build-preview.yml From 2d8e9a5036f5af3836a034c91481632394debd62 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 13:10:08 -0500 Subject: [PATCH 12/21] Trigger with pr --- .github/workflows/build-preview.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 3992ba817..45b444cda 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -2,8 +2,12 @@ name: Preview build with VEDA UI on: workflow_dispatch: + inputs: + VERSION_NUMBER: + default: 'v5.11.0' repository_dispatch: types: [update-version] + pull_request: permissions: contents: write From 6e1c6136773b25c5affe9af069756352e208f2e0 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 13:21:09 -0500 Subject: [PATCH 13/21] Test --- .github/workflows/build-preview.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 45b444cda..dccc58034 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -2,9 +2,6 @@ name: Preview build with VEDA UI on: workflow_dispatch: - inputs: - VERSION_NUMBER: - default: 'v5.11.0' repository_dispatch: types: [update-version] pull_request: @@ -29,7 +26,7 @@ jobs: - name: Set Version Variable id: set-version - run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || inputs.VERSION_NUMBER }}" >> $GITHUB_ENV + run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || 'v5.11.0' }}" >> $GITHUB_ENV - name: git config shell: bash From 1ec0d2211c7fb6a7f374d8f4a72ae68fe3ece2af Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 13:24:52 -0500 Subject: [PATCH 14/21] Use v5.11.3 --- .github/workflows/build-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index dccc58034..f8c8f0260 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -26,7 +26,7 @@ jobs: - name: Set Version Variable id: set-version - run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || 'v5.11.0' }}" >> $GITHUB_ENV + run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || 'v5.11.3' }}" >> $GITHUB_ENV - name: git config shell: bash From 09e88ec957972f5b8ca40fd26170ecb7542bb270 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 13:29:37 -0500 Subject: [PATCH 15/21] Show tags --- .github/workflows/build-preview.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index f8c8f0260..6cb5ddad8 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -26,7 +26,7 @@ jobs: - name: Set Version Variable id: set-version - run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || 'v5.11.3' }}" >> $GITHUB_ENV + run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || 'v5.11.0' }}" >> $GITHUB_ENV - name: git config shell: bash @@ -38,9 +38,9 @@ jobs: run: | git submodule update --init --recursive git submodule update --recursive --remote - ls cd ./.veda/ui - git fetch --all + git fetch --tags + git tag git checkout ${{ env.VERSION }} cd - git add .veda/ui From 565b97008ba8463548385485af316b63a987ab34 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 13:42:05 -0500 Subject: [PATCH 16/21] Consolidate branch name --- .github/workflows/build-preview.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 6cb5ddad8..15813e1a6 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -40,15 +40,14 @@ jobs: git submodule update --recursive --remote cd ./.veda/ui git fetch --tags - git tag git checkout ${{ env.VERSION }} cd - git add .veda/ui git commit -m "Update submodule to version ${{ env.VERSION }}" - name: Push Changes run: | - git checkout -b ${{ env.VERSION }} - git push origin ${{ env.VERSION }} + git checkout -b use-${{ env.VERSION }} + git push origin use-${{ env.VERSION }} - name: Create Pull Request uses: peter-evans/create-pull-request@v7 @@ -56,4 +55,4 @@ jobs: commit-message: "Update UI to ${{ env.VERSION }}" title: "Update submodule to version${{ env.VERSION }}" body: "This PR updates the submodule to version `${{ env.VERSION }}`." - branch: update-to-${{ env.VERSION }} \ No newline at end of file + branch: use-${{ env.VERSION }} \ No newline at end of file From fcaef399d187fe56713333a3b9b7c89fadda5711 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 13:45:03 -0500 Subject: [PATCH 17/21] Set base --- .github/workflows/build-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 15813e1a6..e1efadafe 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -55,4 +55,5 @@ jobs: commit-message: "Update UI to ${{ env.VERSION }}" title: "Update submodule to version${{ env.VERSION }}" body: "This PR updates the submodule to version `${{ env.VERSION }}`." + base: develop branch: use-${{ env.VERSION }} \ No newline at end of file From f818db5e633ffdc3969bf9c06ce0a319d36f296d Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 13:57:51 -0500 Subject: [PATCH 18/21] Merge git job --- .github/workflows/build-preview.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index e1efadafe..93d88efcd 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -42,12 +42,10 @@ jobs: git fetch --tags git checkout ${{ env.VERSION }} cd - + git checkout -b ci-${{ env.VERSION }} git add .veda/ui git commit -m "Update submodule to version ${{ env.VERSION }}" - - name: Push Changes - run: | - git checkout -b use-${{ env.VERSION }} - git push origin use-${{ env.VERSION }} + git push origin ci-${{ env.VERSION }} - name: Create Pull Request uses: peter-evans/create-pull-request@v7 From 3eac1efe7ce818904eae497af4ce47a7a7e48e5e Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 14:05:27 -0500 Subject: [PATCH 19/21] Fix branch name --- .github/workflows/build-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 93d88efcd..acd749403 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -54,4 +54,4 @@ jobs: title: "Update submodule to version${{ env.VERSION }}" body: "This PR updates the submodule to version `${{ env.VERSION }}`." base: develop - branch: use-${{ env.VERSION }} \ No newline at end of file + branch: ci-${{ env.VERSION }} \ No newline at end of file From 80cc98c2735885b424aaacc24349f8c2236dca9e Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 14:11:07 -0500 Subject: [PATCH 20/21] Delegate git work to pr action --- .github/workflows/build-preview.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index acd749403..4590905e9 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -19,6 +19,7 @@ jobs: with: submodules: recursive ref: ${{ github.event.client_payload.ref }} + fetch-depth: 0 - name: Use Node.js ${{ env.NODE }} uses: actions/setup-node@v1 with: @@ -42,11 +43,6 @@ jobs: git fetch --tags git checkout ${{ env.VERSION }} cd - - git checkout -b ci-${{ env.VERSION }} - git add .veda/ui - git commit -m "Update submodule to version ${{ env.VERSION }}" - git push origin ci-${{ env.VERSION }} - - name: Create Pull Request uses: peter-evans/create-pull-request@v7 with: From 5938c75c7671772d2f73946d799560ac1ce4336b Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Wed, 11 Dec 2024 14:21:20 -0500 Subject: [PATCH 21/21] Clean up --- .github/workflows/build-preview.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 4590905e9..748bafe4e 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -2,9 +2,11 @@ name: Preview build with VEDA UI on: workflow_dispatch: + inputs: + VERSION_NUMBER: + type: string repository_dispatch: types: [update-version] - pull_request: permissions: contents: write @@ -27,7 +29,7 @@ jobs: - name: Set Version Variable id: set-version - run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || 'v5.11.0' }}" >> $GITHUB_ENV + run: echo "VERSION=${{ github.event.client_payload.VERSION_NUMBER || inputs.VERSION_NUMBER }}" >> $GITHUB_ENV - name: git config shell: bash @@ -47,7 +49,7 @@ jobs: uses: peter-evans/create-pull-request@v7 with: commit-message: "Update UI to ${{ env.VERSION }}" - title: "Update submodule to version${{ env.VERSION }}" - body: "This PR updates the submodule to version `${{ env.VERSION }}`." + title: "ci: Update submodule to version ${{ env.VERSION }}" + body: "This is an automatic PR that updates the submodule to version `${{ env.VERSION }}`." base: develop - branch: ci-${{ env.VERSION }} \ No newline at end of file + branch: ci-update-${{ env.VERSION }} \ No newline at end of file