-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78c3810
commit 419d41f
Showing
3 changed files
with
65 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: create tag and relese | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
jobs: | ||
create-tag: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
if: github.event.pull_request.merged && startsWith(github.head_ref, 'PR') && startsWith(github.base_ref, 'master') | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Bump version and push tag | ||
id: tag_and_prepare_release | ||
uses: moble/github-tag-action@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
CUSTOM_TAG: "v7.2.1" | ||
- name: Display | ||
run: echo ${{ steps.tag_and_prepare_release.outputs.new_tag }} | ||
- uses: actions/checkout@v2 | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
name: ${{ steps.tag_and_prepare_release.outputs.new_tag }} | ||
tag: ${{ steps.tag_and_prepare_release.outputs.new_tag }} | ||
body: See the <a href="https://github.com/HewlettPackard/oneview-python/blob/master/CHANGELOG.md">CHANGELOG.md</a> for details. | ||
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Raise a Pullrequest | ||
|
||
on: | ||
push: | ||
branches: | ||
- "PR" # Support wildcard matching | ||
|
||
jobs: | ||
pull-request: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: pull-request | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: "PR" # If blank, default: triggered branch | ||
destination_branch: "master" # If blank, default: master | ||
pr_label: "automation" | ||
pr_title: "Testing Ansible Automation" # Title of pull request | ||
pr_reviewer: "alisha-k-kalladassery" | ||
pr_body: ":crown: *An automated PR*" # Full markdown support, requires pr_title to be set | ||
pr_template: ".github/PULL_REQUEST_TEMPLATE.md" # Path to pull request template, requires pr_title to be set, excludes pr_body | ||
pr_allow_empty: true | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |