Skip to content

fix(ci): run pgrx init before install #8

fix(ci): run pgrx init before install

fix(ci): run pgrx init before install #8

Workflow file for this run

name: release-pr
on:
push:
branches:
- ops/support-automated-releases
# TODO: how should this be triggered?
# - prep-release-v[0-9]+\.[0-9]+\.[0-9]+
workflow_dispatch:
inputs:
version:
description: Version to release (ex. `v0.1.0`)
required: false
type: string
jobs:
make-release-pr:
permissions:
id-token: write
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Install deps
- uses: Swatinem/rust-cache@v2
- uses: chainguard-dev/actions/setup-gitsign@main
- name: Install cargo-release
uses: taiki-e/install-action@v1
with:
tool: cargo-release,just,cargo-get,cargo-pgrx
# Initialize PGRX
- name: Initialize pgrx
run: |
cargo pgrx init
# Prep the project
- name: Determine version
id: determine-version
env:
VERSION: ${{inputs.version}}
run: |
echo value=$(just print-version) >> $GITHUB_OUTPUT
# TODO: We should update the CHANGELOG to the new version
# Create PR for release
- uses: cargo-bins/release-pr@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# TODO: We should configure the PR text
version: ${{ steps.determine-version.outputs.value }}