Skip to content

Release v0.5.6

Release v0.5.6 #13

Workflow file for this run

name: Finish Release
on:
pull_request:
types:
- closed
branches:
- master
env:
git_user: duplo-bot
git_email: [email protected]
jobs:
finish-release:
if: github.event.pull_request.merged == true && (startsWith(github.head_ref, 'refs/heads/release/') || startsWith(github.head_ref, 'release/'))
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: master # Always finish releases from the "merged to" master
fetch-depth: 0
persist-credentials: false # Needed so we can push with different credentials.
# NOTE: Pushing with different credentials allows admins to push protected branches.
# NOTE: Pushing with different credentials allow workflows to trigger from the push.
# FINISH THE RELEASE
- name: Initialize mandatory git config
run: |
git config --global user.name $git_user &&
git config --global user.email $git_email
- name: Finish gitflow release
id: finish-release
uses: duplocloud/ghactions-finish-gitflow-release@master
with:
github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
version-bump:
runs-on: ubuntu-latest
needs:
- finish-release
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: develop
fetch-depth: 0
persist-credentials: false # Needed so we can push with different credentials.
# NOTE: Pushing with different credentials allows admins to push protected branches.
# BUMP THE DEVELOPMENT VERSION
- name: Initialize mandatory git config
run: |
git config --global user.name $git_user &&
git config --global user.email $git_email
- name: Version bump
run: |
set -euo pipefail
current="$(sed -ne 's/^VERSION=\([0-9\.]*\).*$/\1/p' <Makefile)"
bump="$(( ${current##*.} + 1))"
prefix="${current%.*}"
sed -e 's/^\(VERSION=\)[0-9\.]*/\1'"${prefix}.${bump}"'/g' -i Makefile
git commit -m 'version bump' Makefile
- name: Push develop
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
branch: develop