stargate-v21-release #32
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
# @author Ivan Senic | |
name: Update Parent Version | |
# runs on | |
# * stargate v2.1 release event | |
# * manual trigger | |
on: | |
repository_dispatch: | |
types: [ stargate-v21-release ] | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Stargate version to update, for example `v2.1.0`.' | |
required: true | |
type: string | |
jobs: | |
main: | |
name: Main | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: main | |
# update version | |
# use input or the event payload value | |
- name: Update version | |
id: update | |
run: | | |
VERSION=${{ inputs.version != null && inputs.version || github.event.client_payload.version }} | |
echo "Resolved version to update to $VERSION" | |
./scripts/bump_stargate.sh ${VERSION} | |
echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
# commit and create pr | |
- name: Create pull-request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Use Stargate ${{ steps.update.outputs.version }} | |
branch: create-pull-request/update-stargate | |
branch-suffix: short-commit-hash | |
base: main | |
title: Use Stargate ${{ steps.update.outputs.version }} | |
body: | | |
Automated changes that try to update Stargate version. |