Files
dokku/plugins/letsencrypt/.github/workflows/bump-version.yaml
T
apple 424232c5af chore: update letsencrypt plugin to 0.25.2
Vendored copy refreshed from dokku/dokku-letsencrypt master (0.20.4 ->
0.25.2), keeping the same set of files the fork vendors (no tests,
Makefile, or CI workflow).
2026-11-14 14:51:34 +08:00

58 lines
1.5 KiB
YAML

---
name: "bump-version"
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
inputs:
bump_type:
description: "Bump type"
default: "patch"
required: true
type: choice
options:
- patch
- minor
- major
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
jobs:
bump-version:
name: bump-version
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
token: ${{ env.GITHUB_ACCESS_TOKEN }}
- name: Get Latest Tag
id: latest-tag
run: |
echo GIT_LATEST_TAG="$(git describe --tags "$(git rev-list --tags --max-count=1)")" >>"$GITHUB_OUTPUT"
- name: Compute Next Tag
id: next-tag
uses: docker://ghcr.io/dokku/semver-generator:latest
with:
bump: ${{ github.event.inputs.bump_type }}
input: ${{ steps.latest-tag.outputs.GIT_LATEST_TAG }}
- name: Bump plugin.toml and Push Release
run: |
git config --global user.name 'Dokku Bot'
git config --global user.email no-reply@dokku.com
VERSION="${GIT_NEXT_TAG#v}"
sed -i "s/^version = .*/version = \"$VERSION\"/" plugin.toml
git add plugin.toml
git commit -m "Release $VERSION"
git tag "$GIT_NEXT_TAG"
git push origin "HEAD:$GITHUB_REF_NAME"
git push origin "$GIT_NEXT_TAG"
env:
GIT_NEXT_TAG: ${{ steps.next-tag.outputs.version }}