Skip to content

Commit

Permalink
Automate version bumps (#115)
Browse files Browse the repository at this point in the history
* Automate version bumps

* Disable automatic merge for testing

* Rename secret
  • Loading branch information
0x2b3bfa0 authored Jul 14, 2023
1 parent 330cdad commit cd50c13
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/studio_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
repository_dispatch:
types: [studio-release]
permissions:
contents: write
pull-requests: write
jobs:
release:
concurrency:
group: release
runs-on: ubuntu-latest
env:
STUDIO_VERSION: ${{ github.event.client_payload.version }}
steps:
- uses: actions/checkout@v3
- run: |
for expression in \
'.version |= (split(".") | .[-1] |= ((. type = "!!int") + 1) | join("."))' \
'.appVersion = env(STUDIO_VERSION)'
do
go run github.com/mikefarah/yq/[email protected] eval --inplace "$expression" charts/studio/Chart.yaml
done
- uses: iterative/setup-cml@v1
- run: >
cml pr create
--{title,body,message}="Studio: bump to $STUDIO_VERSION"
--branch="bump-studio-$STUDIO_VERSION"
--squash
.
env:
GITHUB_TOKEN: ${{ secrets.OLIVAW_GITHUB_PERSONAL_ACCESS_TOKEN }}
- run: >
gh api repos/${{ github.repository }}/pulls/$(gh pr view --{json=,jq=.}number)/reviews
--field event=APPROVE
--method POST
env:
GITHUB_TOKEN: ${{ github.token }}
if: false # remove this for auto-merge

0 comments on commit cd50c13

Please sign in to comment.