Unverified Commit f06c50e0 authored by Allison Suarez Miranda's avatar Allison Suarez Miranda Committed by GitHub

fix: add changelog file (#907)

* "New release for 3.3.1"

Automatically generated by python-semantic-release

* trying to preserve format of changelog
Signed-off-by: 's avatarAllison Suarez Miranda <asuarezmiranda@lyft.com>

* revent v bump
Signed-off-by: 's avatarAllison Suarez Miranda <asuarezmiranda@lyft.com>

* added changelog file to persist through actions
Signed-off-by: 's avatarAllison Suarez Miranda <asuarezmiranda@lyft.com>

* removed changelog call from PR creations tep
Signed-off-by: 's avatarAllison Suarez Miranda <asuarezmiranda@lyft.com>

* removed unnnecesary variable
Signed-off-by: 's avatarAllison Suarez Miranda <asuarezmiranda@lyft.com>

* ssetup cron to run the first day of every month at 12am
Signed-off-by: 's avatarAllison Suarez Miranda <asuarezmiranda@lyft.com>

Co-authored-by: semantic-release <semantic-release>
parent 8686f81e
...@@ -2,7 +2,7 @@ name: Monthly Release ...@@ -2,7 +2,7 @@ name: Monthly Release
on: on:
schedule: schedule:
- cron: 15 20 19 * * - cron: 0 0 1 * *
workflow_dispatch: workflow_dispatch:
logLevel: logLevel:
description: "Log level" description: "Log level"
...@@ -30,7 +30,7 @@ jobs: ...@@ -30,7 +30,7 @@ jobs:
git config user.email github-actions@github.com git config user.email github-actions@github.com
semantic-release version semantic-release version
echo ::set-output name=version::$(semantic-release print-version --current) echo ::set-output name=version::$(semantic-release print-version --current)
echo ::set-output name=difflog::"$(semantic-release changelog)" echo semantic-release changelog > './CHANGELOG.md'
- name: Create release pull request - name: Create release pull request
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v3
with: with:
...@@ -40,7 +40,6 @@ jobs: ...@@ -40,7 +40,6 @@ jobs:
title: Bumped version for release ${{ steps.semantic-release.outputs.version }} title: Bumped version for release ${{ steps.semantic-release.outputs.version }}
body: | body: |
Bumped version to ${{ steps.semantic-release.outputs.version }} Bumped version to ${{ steps.semantic-release.outputs.version }}
${{ steps.semantic-release.outputs.difflog }}
team-reviewers: amundsen-io/amundsen-committers team-reviewers: amundsen-io/amundsen-committers
branch: ${{ env.BRANCH_NAME }} branch: ${{ env.BRANCH_NAME }}
delete-branch: true delete-branch: true
......
...@@ -7,6 +7,7 @@ on: ...@@ -7,6 +7,7 @@ on:
paths: paths:
# triggered when version is bumped # triggered when version is bumped
- "setup.py" - "setup.py"
- "CHANGELOG.md"
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
...@@ -29,7 +30,8 @@ jobs: ...@@ -29,7 +30,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ steps.vers.outputs.version }} tag_name: ${{ steps.vers.outputs.version }}
release_name: New features & Bug Fixes release_name: New Features & Bug Fixes
body_path: ./CHANGELOG.md
- name: Add wheel dependency - name: Add wheel dependency
run: pip install wheel run: pip install wheel
- name: Generate dist - name: Generate dist
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment