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

Automatically create PRs to bump versions in ndc-postgres #594

Merged
merged 6 commits into from
Aug 26, 2024
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
33 changes: 33 additions & 0 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
workflow_dispatch:
inputs:
new_version:
description: "What we want the new version to be"
required: true

name: Bump version

jobs:
bump_version_pr:
name: Create version bump PR
runs-on: ubuntu-latest
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- uses: actions/checkout@v4

- name: Install `just`
uses: extractions/setup-just@v2

- uses: Swatinem/rust-cache@v2
with:
shared-key: "build" # share the cache across jobs
save-if: false

- run: ./scripts/new-version.sh ${{ github.event.inputs.new_version }}

# TODO: auto-merge when we feel confident.
- uses: peter-evans/create-pull-request@v6
with:
title: Bump version to ${{ github.event.inputs.new_version }}
body: This bumps the version in `Cargo.toml` and updates `changelog.md`.
21 changes: 0 additions & 21 deletions .github/workflows/deploy.yaml

This file was deleted.