Skip to content

Commit

Permalink
Merge pull request #539 from HewlettPackard/code_changes
Browse files Browse the repository at this point in the history
code_changes_release_automation
  • Loading branch information
akshith-gunasheelan authored Jun 20, 2023
2 parents d57b56d + 1378e5e commit 0d0625c
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/createtagandrelease.yml
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, 'OV') && endsWith(github.head_ref, 'Validation') && startsWith(github.base_ref, 'master')
steps:
- uses: actions/checkout@v2
- name: Bump version and push tag
id: tag_and_prepare_release
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
CUSTOM_TAG: "v8.4.0-13"
- 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-golang/blob/master/CHANGELOG.md">CHANGELOG.md</a> for details.
token: ${{secrets.GITHUB_TOKEN}}
39 changes: 39 additions & 0 deletions .github/workflows/pullrequestforrelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Raise a Pull Request

on:
push:
branches:
- "OV*_Validation" # Match branches that start with "OV" and end with "_Validation"

jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Debug information
run: |
echo "Current directory: $(pwd)"
echo "GitHub Token: ${{ secrets.GITHUB_TOKEN }}"
echo "Source Branch: ${{ github.ref }}"
echo "Destination Branch: master"
- name: Determine branch name
id: branch
run: |
branch_name=$(echo "${{ github.ref }}" | sed -n 's/refs\/heads\/OV\(.*\)_Validation/\1/p')
echo "::set-output name=branch_name::$branch_name"
- name: Raise pull request
uses: repo-sync/pull-request@v2
with:
source_branch: "${{ github.ref }}" # If blank, default: triggered branch
destination_branch: "master" # If blank, default: master
pr_label: "automation"
pr_title: "OV${{ steps.branch.outputs.branch_name }} Validation" # Construct the pull request title without "refs/heads/" and only using the extracted branch name
pr_body: ":crown: *An automated PR*" # Full markdown support, requires pr_title to be set
pr_reviewer: "nabhajit-ray,AvijitOS"
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 }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# HPE OneView SDK for Terraform Provider

## Build Status
| OV Version| 8.30 | 8.20 | 8.10| 8.00| 7.20 |7.10 | 7.00 | 6.60 | 6.50 | 6.40 | 6.30 |6.20 |6.10 | 6.00 |
| OV Version | 8.30 | 8.20 | 8.10 | 8.00 | 7.20 | 7.10 | 7.00 | 6.60 | 6.50 | 6.40 | 6.30 | 6.20 | 6.10 | 6.00 |
| --------------:| --------------:| --------------: | --------------: | --------------: |--------------: |--------------: |--------------: |--------------: |--------------: |--------------: |--------------: |--------------: |--------------: |--------------: |
| SDK Version/Tag |[v8.3.0-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v8.2.0-13)|[v8.3.0-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v8.2.0-13) |[v8.1.0-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v8.1.0-13) |[v8.0.0-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v8.0.0-13) |[v7.2.0-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v7.2.0-13) | [v7.1.0-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v7.1.0-13) | [v7.0.0-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v7.0.0-13) | [v6.6.0-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v6.6.0-13) | [v6.5.0-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v6.5.0-13) | [v6.4.0-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v6.4.0-13) | [v6.3.1-13](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v6.3.1-13) | [v6.2.0-13 ](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v6.2.0-13) | [v6.1.0-13 ](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v6.1.0-13) | [v6.0.0-13 ](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v6.0.0-13) | [v6.0.0-12 ](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v6.0.0-12) | [v1.7.0-12 ](https://github.com/HewlettPackard/terraform-provider-oneview/releases/tag/v1.7.0-12) |
| Build Status | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/4423603823)|[![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/4423603823) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/3702892830) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/3410062934) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/2982719597) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/2688385352) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/2311877982) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/2020207864) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/1686945274) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/1488877220) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/1216442369) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/1021599071) | [![Build status](https://github.com/HewlettPackard/terraform-provider-oneview/actions/workflows/test.yml/badge.svg)](https://github.com/HewlettPackard/terraform-provider-oneview/actions/runs/707591356) | [![Build status](https://api.travis-ci.com/HewlettPackard/terraform-provider-oneview.svg)](https://travis-ci.org/github/HewlettPackard/terraform-provider-oneview/builds) | [![Build status](https://api.travis-ci.com/HewlettPackard/terraform-provider-oneview.svg)](https://travis-ci.org/github/HewlettPackard/terraform-provider-oneview/builds) |
Expand Down Expand Up @@ -206,4 +206,4 @@ Note: Currently this SDK supports OneView API 5200 minimally where we can test O

[HPE OneView Community Forums](http://hpe.com/info/oneviewcommunity)

Learn more about HPE OneView at [hpe.com/info/oneview](https://hpe.com/info/oneview)
Learn more about HPE OneView at [hpe.com/info/oneview](https://hpe.com/info/oneview)

0 comments on commit 0d0625c

Please sign in to comment.