Skip to content

Commit

Permalink
Automation release issue: Fix the bugs
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Jul 16, 2023
1 parent 8f19baf commit e09d40e
Showing 1 changed file with 20 additions and 33 deletions.
53 changes: 20 additions & 33 deletions .github/workflows/os-release-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
repository: opensearch-project/opensearch-build
repository: prudhvigodithi/opensearch-build
ref: main
- id: set-matrix
# produces a list of major versions, e.g. ["1.4.0","2.10.0","2.6.0","2.7.0","2.8.0","2.9.0","3.0.0"]
Expand All @@ -36,26 +36,7 @@ jobs:
fail-fast: false
matrix:
entry:
- {repo: OpenSearch}
- {repo: alerting}
- {repo: anomaly-detection}
- {repo: asynchronous-search}
- {repo: common-utils}
- {repo: cross-cluster-replication}
- {repo: geospatial}
- {repo: index-management}
- {repo: job-scheduler}
- {repo: k-NN}
- {repo: neural-search}
- {repo: ml-commons}
- {repo: notifications}
- {repo: observability}
- {repo: performance-analyzer}
- {repo: performance-analyzer-rca}
- {repo: reporting}
- {repo: security}
- {repo: security-analytics}
- {repo: sql}
release_version: ${{ fromJson(needs.list-manifest-versions.outputs.matrix) }}
steps:
- name: Checkout
Expand All @@ -69,20 +50,20 @@ jobs:
search_existing: all
update_existing: false
filename: .github/ISSUE_TEMPLATE/release_template.md
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780
#- name: GitHub App token
# id: github_app_token
# uses: tibdex/[email protected]
# with:
# app_id: ${{ secrets.APP_ID }}
# private_key: ${{ secrets.APP_PRIVATE_KEY }}
# installation_id: 22958780
- name: Check out build repo
uses: actions/checkout@v3
- name: Check out plugin repo
uses: actions/checkout@v3
with:
path: plugin-repo
repository: opensearch-project/${{ matrix.entry.repo }}
repository: prudhvigodithi/${{ matrix.entry.repo }}
- name: Replace placeholders
run: |
# Read the file contents and replace the placeholders
Expand All @@ -96,15 +77,21 @@ jobs:
uses: actions-cool/issues-helper@v3
with:
actions: 'find-issues'
repo: opensearch-project/${{ matrix.entry.repo }}
token: ${{ steps.github_app_token.outputs.token }}
repo: prudhvigodithi/${{ matrix.entry.repo }}
# token: ${{ steps.github_app_token.outputs.token }}
token: ${{ secrets.GITHUB_TOKEN }}
title-includes: '[RELEASE] Release version ${{ matrix.release_version }}'
#- name: Check outputs
# run: |-
# echo "The outputs are - ${{ steps.check_if_issue_exists.outputs.issues }}"
- name: Create Issue From File
if: steps.check_if_issue_exists.issues == '[]'
if: steps.check_if_issue_exists.outputs.issues == '[]'
uses: peter-evans/create-issue-from-file@v4
with:
title: '[RELEASE] Release version ${{ matrix.release_version }}'
content-filepath: ../opensearch-build/.github/ISSUE_TEMPLATE/component_release_template.md
labels: 'v${{ matrix.release_version }}'
token: ${{ steps.github_app_token.outputs.token }}
repository: opensearch-project/${{ matrix.entry.repo }}
#token: ${{ steps.github_app_token.outputs.token }}
token: ${{ secrets.GITHUB_TOKEN }}
repository: prudhvigodithi/${{ matrix.entry.repo }}

0 comments on commit e09d40e

Please sign in to comment.