Skip to content

releases

releases #820

Workflow file for this run

---
name: releases
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
jobs:
list-manifest-versions:
if: github.repository == 'opensearch-project/opensearch-build'
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- id: set-matrix
# produces a list of versions, e.g. ["1.0.0","1.0.0","1.0.1","1.1.0","1.2.0","2.0.0"]
run: echo "::set-output name=matrix::$(ls manifests/**/opensearch*.yml | cut -d'/' -f2 | sort | uniq | jq -R -s -c 'split("\n")[:-1]')"
check:
needs: list-manifest-versions
runs-on: ubuntu-latest
strategy:
matrix:
release_version: ${{ fromJson(needs.list-manifest-versions.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
- name: Create release issue
uses: dblock/[email protected]
id: release-issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ matrix.release_version }}
with:
search_existing: all
update_existing: false
filename: .github/ISSUE_TEMPLATE/release_template.md
- name: Create retrospective issue
uses: dblock/[email protected]
if: ${{ steps.release-issue.outputs.status == 'created' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ matrix.release_version }}
RELEASE_ISSUE_URL: ${{ steps.release-issue.outputs.url }}
with:
search_existing: all
update_existing: false
filename: .github/ISSUE_TEMPLATE/release_retrospective_template.md