Skip to content

Commit

Permalink
Automation for component release issue creation: Fix the right outputs (
Browse files Browse the repository at this point in the history
#3744)

Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi authored Jul 15, 2023
1 parent 738ea8a commit 8f19baf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/os-release-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ jobs:
- {repo: sql}
release_version: ${{ fromJson(needs.list-manifest-versions.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: dblock/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ matrix.release_version }}
id: build-repo-release-issue
with:
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]
Expand Down Expand Up @@ -89,7 +100,7 @@ jobs:
token: ${{ steps.github_app_token.outputs.token }}
title-includes: '[RELEASE] Release version ${{ matrix.release_version }}'
- name: Create Issue From File
if: steps.check_if_issue_exists.outputs.check-result =='false'
if: steps.check_if_issue_exists.issues == '[]'
uses: peter-evans/create-issue-from-file@v4
with:
title: '[RELEASE] Release version ${{ matrix.release_version }}'
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/osd-release-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ jobs:
- {repo: opensearch-dashboards-functional-test}
release_version: ${{ fromJson(needs.list-manifest-versions.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: dblock/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ matrix.release_version }}
id: build-repo-release-issue
with:
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]
Expand Down Expand Up @@ -84,7 +95,7 @@ jobs:
token: ${{ steps.github_app_token.outputs.token }}
title-includes: '[RELEASE] Release version ${{ matrix.release_version }}'
- name: Create Issue From File
if: steps.check_if_issue_exists.outputs.check-result =='false'
if: steps.check_if_issue_exists.issues == '[]'
uses: peter-evans/create-issue-from-file@v4
with:
title: '[RELEASE] Release version ${{ matrix.release_version }}'
Expand Down

0 comments on commit 8f19baf

Please sign in to comment.