Skip to content

chore(deps): update dependency knope to v0.12.0 #862

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

Merged
merged 3 commits into from
Oct 14, 2023
Merged
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
39 changes: 0 additions & 39 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/prerelease.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/preview_release_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
branches: [main]
name: Create Release PR
jobs:
prepare-release:
if: "!contains(github.event.head_commit.message, 'chore: prepare release')" # Skip merges from releases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
- name: Configure Git
run: |
git config --global user.name GitHub Actions
git config user.email github-actions@github.com
- uses: knope-dev/action@v2.0.0
with:
version: 0.12.0
- run: knope prepare-release --verbose
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
continue-on-error: true
5 changes: 1 addition & 4 deletions .github/workflows/release-dry-run.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Release Dry Run

on:
push:
branches:
- main
pull_request:
jobs:
release:
Expand All @@ -16,5 +13,5 @@ jobs:
- name: Install Knope
uses: knope-dev/action@v2.0.0
with:
version: 0.11.0
version: 0.12.0
- run: knope release --dry-run
23 changes: 10 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
name: Release

on: workflow_dispatch
on:
pull_request:
types: [closed]
branches: [main]

jobs:
release:
if: github.head_ref == 'release' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
git_push_gpgsign: false
- name: Install Knope
uses: knope-dev/action@v2.0.0
with:
version: 0.11.0
- name: Bump Version & Create GitHub Release
run: knope release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
version: 0.12.0
- name: Install Poetry
run: pip install --upgrade poetry
- name: Push to PyPI
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_TOKEN }}
- name: Create GitHub Release
run: knope release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
48 changes: 48 additions & 0 deletions knope.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[package]
versioned_files = ["pyproject.toml"]
changelog = "CHANGELOG.md"

[[workflows]]
name = "prepare-release"

[[workflows.steps]]
type = "Command"
command = "git switch -c release"

[[workflows.steps]]
type = "PrepareRelease"

[[workflows.steps]]
type = "Command"
command = "git commit -m \"chore: prepare release $version\" && git push --force --set-upstream origin release"

[workflows.steps.variables]
"$version" = "Version"

[[workflows.steps]]
type = "CreatePullRequest"
base = "main"

[workflows.steps.title]
template = "chore: prepare release $version"
variables = { "$version" = "Version" }

[workflows.steps.body]
template = "This PR was created by Knope. Merging it will create a new release\n\n$changelog"
variables = { "$changelog" = "ChangelogEntry" }

[[workflows]]
name = "release"

[[workflows.steps]]
type = "Release"

[[workflows]]
name = "document-change"

[[workflows.steps]]
type = "CreateChangeFile"

[github]
owner = "openapi-generators"
repo = "openapi-python-client"