-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: fireblocks_dx_team <[email protected]>
- Loading branch information
1 parent
3ba1cd0
commit 5ea3717
Showing
11 changed files
with
118 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[tool.bumpversion] | ||
commit = false | ||
tag = false | ||
current_version = "placeholder_version" | ||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\-(?P<release>[a-z]+))?" | ||
serialize = [ | ||
"{major}.{minor}.{patch}-{release}", | ||
"{major}.{minor}.{patch}" | ||
] | ||
[[tool.bumpversion.files]] | ||
filename = "pom.xml" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "build.gradle" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "README.md" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "src/main/java/com/fireblocks/sdk/Configuration.java" | ||
|
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,25 @@ | ||
name: Create Pull Request | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'fireblocks-api-spec/generated/*' | ||
|
||
jobs: | ||
create-pull-request: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create pull request | ||
run: | | ||
gh pr create \ | ||
--title "${{ github.event.commits[0].message }}" \ | ||
--body "This PR was automatically generated." \ | ||
--base master \ | ||
--head ${{ github.ref }} \ | ||
--reviewer asafs932,zoharsf,YoavBZ | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -5,14 +5,60 @@ on: | |
types: [published] | ||
|
||
jobs: | ||
bump-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install bump-my-version | ||
- name: Bump version | ||
run: | | ||
initialTag=${{ github.event.release.tag_name }} | ||
tag="${initialTag//[v]/}" | ||
echo $tag | ||
git remote update | ||
git fetch | ||
echo "finished fetching" | ||
git checkout --track origin/master | ||
echo "finished checkout" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
echo "finished configuration" | ||
bump-my-version bump --config-file .bump_version.toml --current-version 0.0.0 --new-version $tag | ||
echo "bumpversion finished" | ||
git add . | ||
git commit -m "release $tag" | ||
git push | ||
- name: Move tag | ||
run: | | ||
TAG_NAME=${{ github.event.release.tag_name }} | ||
echo $tag | ||
git tag --force $TAG_NAME | ||
git push --force origin $TAG_NAME | ||
publish: | ||
needs: bump-version | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: master | ||
fetch-depth: 0 | ||
- name: Set up Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.bump_version.toml | ||
.github/workflows/build-maven.yml | ||
.gitignore | ||
.openapi-generator-ignore | ||
|
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
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
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