-
Notifications
You must be signed in to change notification settings - Fork 272
48 lines (46 loc) · 1.63 KB
/
releases.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
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/create-a-github-issue@v3.0.0
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/create-a-github-issue@v3.0.0
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