From acdc57396db0487d5670ca1a8571fdfc93c2456b Mon Sep 17 00:00:00 2001 From: jerensl <54782057+jerensl@users.noreply.github.com> Date: Mon, 21 Oct 2024 19:18:56 +0800 Subject: [PATCH 1/3] ci: auto bump version for meshery, extensions and cloud Signed-off-by: jerensl <54782057+jerensl@users.noreply.github.com> --- .github/workflows/bump-meshery-version.yml | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 .github/workflows/bump-meshery-version.yml diff --git a/.github/workflows/bump-meshery-version.yml b/.github/workflows/bump-meshery-version.yml new file mode 100644 index 00000000..9f7feb22 --- /dev/null +++ b/.github/workflows/bump-meshery-version.yml @@ -0,0 +1,127 @@ +name: Bump Meshery, Meshery Extensions and Meshery Cloud + +on: + release: + types: [published] + +jobs: + bump-meshery: + runs-on: ubuntu-latest + steps: + - name: Checkout Meshery code + uses: actions/checkout@v4 + with: + repository: meshery/meshery + fetch-depth: 1 + token: ${{ secrets.RELEASEDRAFTER_PAT }} + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: "npm" + cache-dependency-path: '**/package-lock.json' + - name: Make changes to pull request + working-directory: ui + run: npm install @layer5/sistent@latest + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.RELEASEDRAFTER_PAT }} + commit-message: Bump sistent ${{ github.event.release.tag_name }} dependencies + committer: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + author: "l5io" + signoff: true + branch: bump-sistent-bot + delete-branch: true + title: '[Chore]: Bump ${{ github.event.release.name }}' + add-paths: | + ui/package.json + ui/package-lock.json + body: | + Update sistent ${{ github.event.release.tag_name }} + - Updated with *today's* date + - Auto-generated by [l5io][1] + + [1]: https://github.com/l5io + assignees: l5io + draft: false + bump-meshery-extensions: + runs-on: ubuntu-latest + steps: + - name: Checkout Meshery Extensions code + uses: actions/checkout@v4 + with: + repository: layer5labs/meshery-extensions + fetch-depth: 1 + token: ${{ secrets.RELEASEDRAFTER_PAT }} + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: "npm" + cache-dependency-path: '**/package-lock.json' + - name: Make changes to pull request + working-directory: meshmap + run: npm install @layer5/sistent@latest + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.RELEASEDRAFTER_PAT }} + commit-message: Bump sistent ${{ github.event.release.tag_name }} dependencies + committer: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + author: "l5io" + signoff: true + branch: bump-sistent-bot + delete-branch: true + title: '[Chore]: Bump ${{ github.event.release.name }}' + add-paths: | + meshmap/package.json + meshmap/package-lock.json + body: | + Update sistent ${{ github.event.release.tag_name }} + - Updated with *today's* date + - Auto-generated by [l5io][1] + + [1]: https://github.com/l5io + assignees: l5io + draft: false + bump-meshery-cloud: + runs-on: ubuntu-latest + steps: + - name: Checkout Meshery Extensions code + uses: actions/checkout@v4 + with: + repository: layer5io/meshery-cloud + fetch-depth: 1 + token: ${{ secrets.RELEASEDRAFTER_PAT }} + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: "npm" + cache-dependency-path: '**/package-lock.json' + - name: Make changes to pull request + working-directory: ui + run: npm install @layer5/sistent@latest + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.RELEASEDRAFTER_PAT }} + commit-message: Bump sistent ${{ github.event.release.tag_name }} dependencies + committer: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + author: "l5io" + signoff: true + branch: bump-sistent-bot + delete-branch: true + title: '[Chore]: Bump ${{ github.event.release.name }}' + add-paths: | + ui/package.json + ui/package-lock.json + body: | + Update sistent ${{ github.event.release.tag_name }} + - Updated with *today's* date + - Auto-generated by [l5io][1] + + [1]: https://github.com/l5io + assignees: l5io + draft: false \ No newline at end of file From a99f4e2db53168ce77a2e0fb7ef370b1d4c815d8 Mon Sep 17 00:00:00 2001 From: Jerens Lensun <54782057+jerensl@users.noreply.github.com> Date: Tue, 22 Oct 2024 13:45:35 +0800 Subject: [PATCH 2/3] Update .github/workflows/bump-meshery-version.yml Co-authored-by: Lee Calcote Signed-off-by: Jerens Lensun <54782057+jerensl@users.noreply.github.com> --- .github/workflows/bump-meshery-version.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bump-meshery-version.yml b/.github/workflows/bump-meshery-version.yml index 9f7feb22..8699d7b4 100644 --- a/.github/workflows/bump-meshery-version.yml +++ b/.github/workflows/bump-meshery-version.yml @@ -118,10 +118,8 @@ jobs: ui/package.json ui/package-lock.json body: | - Update sistent ${{ github.event.release.tag_name }} - - Updated with *today's* date - - Auto-generated by [l5io][1] - - [1]: https://github.com/l5io + Update to Sistent ${{ github.event.release.tag_name }} + + _This pull request has been auto-generated by [l5io](http://github.com/l5io)_ assignees: l5io draft: false \ No newline at end of file From 9311d0416d68ad007f38bb3ee1bd4807fc4058a7 Mon Sep 17 00:00:00 2001 From: jerensl <54782057+jerensl@users.noreply.github.com> Date: Tue, 22 Oct 2024 13:50:30 +0800 Subject: [PATCH 3/3] ci: apply the comment body to all repo Signed-off-by: jerensl <54782057+jerensl@users.noreply.github.com> --- .github/workflows/bump-meshery-version.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/bump-meshery-version.yml b/.github/workflows/bump-meshery-version.yml index 8699d7b4..99e5c52d 100644 --- a/.github/workflows/bump-meshery-version.yml +++ b/.github/workflows/bump-meshery-version.yml @@ -38,11 +38,9 @@ jobs: ui/package.json ui/package-lock.json body: | - Update sistent ${{ github.event.release.tag_name }} - - Updated with *today's* date - - Auto-generated by [l5io][1] - - [1]: https://github.com/l5io + Update to Sistent ${{ github.event.release.tag_name }} + + _This pull request has been auto-generated by [l5io](http://github.com/l5io)_ assignees: l5io draft: false bump-meshery-extensions: @@ -78,11 +76,9 @@ jobs: meshmap/package.json meshmap/package-lock.json body: | - Update sistent ${{ github.event.release.tag_name }} - - Updated with *today's* date - - Auto-generated by [l5io][1] - - [1]: https://github.com/l5io + Update to Sistent ${{ github.event.release.tag_name }} + + _This pull request has been auto-generated by [l5io](http://github.com/l5io)_ assignees: l5io draft: false bump-meshery-cloud: