Skip to content

Commit

Permalink
ci: change the event using version from artifact
Browse files Browse the repository at this point in the history
Signed-off-by: jerensl <[email protected]>
  • Loading branch information
jerensl committed Nov 7, 2024
1 parent 14fff35 commit 936aaac
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/bump-meshery-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
id: current
bump-meshery:
runs-on: ubuntu-latest
needs: versions-check
steps:
- name: Checkout Meshery code
uses: actions/checkout@v4
Expand All @@ -38,30 +39,31 @@ jobs:
cache-dependency-path: '**/package-lock.json'
- name: Make changes to pull request
working-directory: ui
run: npm install @layer5/sistent@${{job.status}}
run: npm install @layer5/sistent@${{needs.versions-check.outputs.current}}
- 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
commit-message: Bump sistent v${{ needs.versions-check.outputs.current }} dependencies
committer: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: true
branch: bump-sistent-bot
delete-branch: true
title: '[Chore]: Bump ${{ github.event.release.name }}'
title: '[Chore]: Bump v${{ needs.versions-check.outputs.current }}'
add-paths: |
ui/package.json
ui/package-lock.json
body: |
Update to Sistent ${{ github.event.release.tag_name }}
Update to Sistent v${{ needs.versions-check.outputs.current }}
_This pull request has been auto-generated by [l5io](http://github.com/l5io)_
assignees: l5io
draft: false
bump-meshery-extensions:
runs-on: ubuntu-latest
needs: versions-check
steps:
- name: Checkout Meshery Extensions code
uses: actions/checkout@v4
Expand All @@ -76,30 +78,31 @@ jobs:
cache-dependency-path: '**/package-lock.json'
- name: Make changes to pull request
working-directory: meshmap
run: npm install @layer5/sistent@latest
run: npm install @layer5/sistent@${{needs.versions-check.outputs.current}}
- 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
commit-message: Bump sistent v${{ needs.versions-check.outputs.current }} dependencies
committer: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: true
branch: bump-sistent-bot
delete-branch: true
title: '[Chore]: Bump ${{ github.event.release.name }}'
title: '[Chore]: Bump v${{needs.versions-check.outputs.current }}'
add-paths: |
meshmap/package.json
meshmap/package-lock.json
body: |
Update to Sistent ${{ github.event.release.tag_name }}
Update to Sistent v${{ needs.versions-check.outputs.current }}
_This pull request has been auto-generated by [l5io](http://github.com/l5io)_
assignees: l5io
draft: false
bump-meshery-cloud:
runs-on: ubuntu-latest
needs: versions-check
steps:
- name: Checkout Meshery Extensions code
uses: actions/checkout@v4
Expand All @@ -114,24 +117,24 @@ jobs:
cache-dependency-path: '**/package-lock.json'
- name: Make changes to pull request
working-directory: ui
run: npm install @layer5/sistent@latest
run: npm install @layer5/sistent@${{needs.versions-check.outputs.current}}
- 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
commit-message: Bump sistent v${{ needs.versions-check.outputs.current }} dependencies
committer: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: true
branch: bump-sistent-bot
delete-branch: true
title: '[Chore]: Bump ${{ github.event.release.name }}'
title: '[Chore]: Bump v${{ needs.versions-check.outputs.current }}'
add-paths: |
ui/package.json
ui/package-lock.json
body: |
Update to Sistent ${{ github.event.release.tag_name }}
Update to Sistent v${{ needs.versions-check.outputs.current }}
_This pull request has been auto-generated by [l5io](http://github.com/l5io)_
assignees: l5io
Expand Down

0 comments on commit 936aaac

Please sign in to comment.