diff --git a/.github/workflows/createtagandrelease.yml b/.github/workflows/createtagandrelease.yml new file mode 100644 index 00000000..8466c973 --- /dev/null +++ b/.github/workflows/createtagandrelease.yml @@ -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/github-tag-action@1.64.0 + 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 CHANGELOG.md for details. + token: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file diff --git a/.github/workflows/pullrequestforrelease.yml b/.github/workflows/pullrequestforrelease.yml new file mode 100644 index 00000000..7ff9f5a8 --- /dev/null +++ b/.github/workflows/pullrequestforrelease.yml @@ -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 }} \ No newline at end of file diff --git a/README.md b/README.md index 52f37174..1819a6bd 100644 --- a/README.md +++ b/README.md @@ -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) | @@ -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) \ No newline at end of file