-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 261-use-renku-secret-storage
- Loading branch information
Showing
11 changed files
with
69 additions
and
37 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
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
push: | ||
branches: | ||
- master | ||
- release-action | ||
# - main | ||
|
||
jobs: | ||
|
@@ -13,37 +12,70 @@ jobs: | |
if: "!contains(github.event.head_commit.message, 'Bump version')" | ||
runs-on: ubuntu-20.04 | ||
|
||
permissions: | ||
permissions: write-all | ||
# Give the default GITHUB_TOKEN write permission to commit and push the | ||
# added or changed files to the repository. | ||
contents: write | ||
# contents: write | ||
|
||
steps: | ||
- name: actions/checkout | ||
uses: actions/checkout@v3 | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.BOT_SECRET }} | ||
# persist-credentials: false | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | ||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build bump2version | ||
pip install bump2version | ||
- name: Bump version | ||
id: bump-version | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ODA Release Bot" | ||
bump2version patch --verbose --commit --tag | ||
bump2version release --verbose --commit --tag | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
echo "::set-output name=new_version::$(git describe --tags --abbrev=0)" | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
id: cpr | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
reviewers: "volodymyrss" | ||
assignees: "volodymyrss" | ||
title: "Bump version to ${{ steps.bump-version.outputs.new_version }}" | ||
branch: "bump-version-${{ steps.bump-version.outputs.new_version }}" | ||
body: | | ||
Bump version to ${{ steps.bump-version.outputs.new_version }} | ||
This PR was created automatically by the Bump version workflow. | ||
- name: Enable Pull Request Automerge and Approve | ||
run: | | ||
gh pr edit --add-label "test-live" ${{ steps.cpr.outputs.pull-request-number }} | ||
gh pr merge --merge --auto ${{ steps.cpr.outputs.pull-request-number }} | ||
gh pr review --approve ${{ steps.cpr.outputs.pull-request-number }} | ||
env: | ||
GH_TOKEN: ${{ secrets.BOT_SECRET }} | ||
|
||
|
||
publish-version: | ||
name: Publish new package version | ||
if: "contains(github.event.head_commit.message, 'Bump version')" | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | ||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
run: python -m build | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version": "1.2.21"} | ||
{"version": "1.2.26"} |
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