-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1805 from quadratichq/repo-versioning
Create bump.sh to bump all js and rust versions at once
- Loading branch information
Showing
23 changed files
with
495 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Bump Version on PR against to main | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
bump_type: | ||
description: 'Type of version bump' | ||
default: patch | ||
type: choice | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
pull_request: | ||
types: [opened] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
bump-version: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install jq | ||
run: sudo apt-get install jq | ||
|
||
- name: Run bump.sh script | ||
run: ./bump.sh ${{ github.event.inputs.bump_type || 'patch' }} | ||
|
||
- name: Commit and push changes | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git add . | ||
git commit -m 'Bump version' || exit 0 | ||
git pull --rebase | ||
git push |
Oops, something went wrong.