From c88e28c853005f9693abfaf44098ce84c7b1f3de Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Fri, 8 Nov 2024 15:42:15 -0500 Subject: [PATCH] Add `update-version-on-website.yml` GHA to test website update --- .../workflows/update-version-on-website.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/update-version-on-website.yml diff --git a/.github/workflows/update-version-on-website.yml b/.github/workflows/update-version-on-website.yml new file mode 100644 index 0000000000..618bb1155f --- /dev/null +++ b/.github/workflows/update-version-on-website.yml @@ -0,0 +1,28 @@ +name: Update Version for project on spring.io + +on: + workflow_dispatch: + inputs: + newVersion: + description: 'Version to update on website, e.g 3.0.0-M1, 3.1.0-RC1, 3.2.0 etc.' + +jobs: + update-version-on-website: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + show-progress: false + + - name: Checkout Common Repo + uses: actions/checkout@v4 + with: + repository: spring-io/spring-github-workflows + path: spring-github-workflows + show-progress: false + + - name: Build and Publish + uses: ./spring-github-workflows/.github/actions/spring-website-project-version-update + with: + newVersion: ${{ inputs.newVersion }} + token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}