Skip to content

release PR refs/heads/main@84549583ff01eeae504a30a82c3cd9e4c3576042 #3

release PR refs/heads/main@84549583ff01eeae504a30a82c3cd9e4c3576042

release PR refs/heads/main@84549583ff01eeae504a30a82c3cd9e4c3576042 #3

Workflow file for this run

name: release_pr
run-name: release PR ${{ github.ref }}@${{ github.sha }}
on:
workflow_dispatch:
inputs:
url:
description: Github repository URL to point links at, prefixed 'https://github.com/'
required: true
type: string
title:
description: Release title; new version and date will be added
type: string
tag_prefixes:
description: Comma separated prefixes to find tags, i.e ${PREFIX}v1.0.0
type: string
jobs:
release_pr:
name: release PR
runs-on: ubuntu-latest
steps:
- name: Validate branch
if: github.ref != 'refs/heads/main' && github.event.local != true
run: |
echo expected main, got: ${{ github.ref }} && exit 1
- name: Checkout
uses: actions/[email protected]
with:
fetch-tags: true
fetch-depth: 0
submodules: true
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.23
- run: go install github.com/tcodes0/go/cmd/changelog@latest
- name: Update changelog
shell: bash
env:
CHANGELOG_FILE: CHANGELOG.md
BASH_ENV: ./lib.sh
TAGS_FILE: tags.txt
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./workflows/release/changelog.sh "${{ inputs.url }}" "${{ inputs.title }}" "${{ inputs.tag_prefixes }}"
- name: Open PR
uses: peter-evans/[email protected]
if: github.event.local != true
with:
commit-message: "chore: release ${{ inputs.title }}"
title: "chore: release ${{ inputs.title }}"
add-paths: .
body: ""
committer: release-workflow <41898282+github-actions[bot]@users.noreply.github.com>
branch: release-${{ inputs.title }}
branch-suffix: random