forked from amundsen-io/amundsen
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.8 KB
/
monthly_release.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
49
50
name: Monthly Release
on:
schedule:
- cron: 0 0 1 * *
workflow_dispatch:
logLevel:
description: "Log level"
required: true
default: "warning"
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
library: ['common', 'databuilder', 'frontend', 'metadata', 'search']
env:
BRANCH_NAME: new-release-${{ matrix.library }}-${{ github.run_id }}
steps:
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Checkout master
uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Semantic release
id: semantic-release
run: |
pip install python-semantic-release
git config user.name github-actions
git config user.email github-actions@github.com
semantic-release version
echo ::set-output name=version::$(semantic-release print-version --current)
semantic-release changelog > './CHANGELOG.md'
working-directory: ./${{ matrix.library }}
- name: Create release pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Bumped ${{ matrix.library }} version to ${{ steps.semantic-release.outputs.version }}
committer: github-actions <github-actions@github.com>
author: github-actions <github-actions@github.com>
signoff: true
branch: ${{ env.BRANCH_NAME }}
delete-branch: true
title: |
chore: Bumped ${{ matrix.library }} version for release ${{ steps.semantic-release.outputs.version }}
body: |
Bumped ${{ matrix.library }} version to ${{ steps.semantic-release.outputs.version }}
team-reviewers: amundsen-io/amundsen-committers