Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.13.3 Release Preparation #924

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Release Notes Generator
name: Release Prep

on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to merge release notes into.'
description: 'Branch to merge release notes and code analysis into.'
required: true
default: 'main'
version:
Expand All @@ -15,7 +15,7 @@ on:
'Date of the release. Must be in format YYYY-MM-DD.'

jobs:
releasenotesgeneration:
preparerelease:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -28,25 +28,30 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install requests==2.31.0
python -m pip install bandit==1.7.7
python -m pip install .[test]

- name: Generate release notes
env:
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
run: >
python -m scripts.release_notes_generator
python scripts/release_notes_generator.py
-v ${{ inputs.version }}
-d ${{ inputs.date }}

- name: Save static code analysis
run: bandit -r . -x ./tests,./scripts,./build -f txt -o static_code_analysis.txt --exit-zero

- name: Create pull request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
commit-message: Release notes for v${{ inputs.version }}
commit-message: Prepare release for v${{ inputs.version }}
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
title: v${{ inputs.version }} Release Notes
body: "This is an auto-generated PR to update the release notes."
branch: release-notes
title: v${{ inputs.version }} Release Preparation
body: "This is an auto-generated PR to prepare the release."
branch: prepared-release
branch-suffix: short-commit-hash
base: ${{ inputs.branch }}
35 changes: 0 additions & 35 deletions .github/workflows/static_code_analysis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# History

## v1.13.3 - 2025-01-09

### Maintenance

* Combine `static_code_analysis.yml` with `release_notes.yml` - Issue [#915](https://github.com/sdv-dev/RDT/issues/915) by @R-Palazzo

## v1.13.2 - 2024-12-16

### Bugs Fixed
Expand Down
2 changes: 1 addition & 1 deletion static_code_analysis.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Run started:2024-12-16 23:01:53.056528
Run started:2025-01-09 12:29:34.664493

Test results:
No issues identified.
Expand Down
Loading