v2.0.1 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Post | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: string | |
description: Don't use it yet. | |
release: | |
types: [published] | |
env: | |
APP_ID: 251311 | |
jobs: | |
post-release: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.output_version.outputs.version }} | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: print ref | |
run: echo "ref is ${{ github.ref_name }}" | |
- name: Set NEXT VERSION variable from tag | |
run: | | |
NEXT_VERSION=$(echo ${{github.ref_name}} | awk -F. -v OFS=. '{$NF += 1 ; print}') | |
echo "NEXT_VERSION=${NEXT_VERSION:1}-dev" >> $GITHUB_ENV | |
- name: Set | |
run: make unreleasechangelog VERSION=${{github.ref_name}} | |
- name: update version | |
run: make updateversion VERSION=${{env.NEXT_VERSION}} | |
# update homebrew badge is skipped here, should it be? | |
- name: create PR | |
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 | |
with: | |
add-paths: . | |
commit-message: "Back to development" | |
branch: next/${{env.NEXT_VERSION}} | |
delete-branch: true | |
base: main | |
title: "Return to development" | |
body: Release complete for ${{github.ref_name}} | |
token: ${{ secrets.GITHUB_TOKEN }} |