8124980e1b
* use -C when go-mod-dir is provided * remove unused target variable * use my branch for testing * fix syntax? * use condition in bash instead * dagger-for-github doesn't support multiline command * just skip using the composite action * update setup-go * add missing space * grafana-main -> .grafana-main * use 'patch' as version * use generated token for cloning / pushing * colons in wrong place * update generate-token action * reduce permissions needed * add org prefix to repositories list * ok the repo names did not work like that * pull-request -> pull_request * add workflows: write permission * push branch on dry_run * Add missing DRY_RUN flag * initialize LATEST_FLAG as array * use RELEASE_BRANCH as the base branch * use workflow in main * done testing; use main
24 lines
678 B
YAML
24 lines
678 B
YAML
name: Bump version
|
|
description: Updates package.json versions in Grafana and subpackages and regenerates schemas
|
|
inputs:
|
|
version:
|
|
description: The new version (ex. 1.2.3)
|
|
required: true
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version-file: go.mod
|
|
- name: Bump versions
|
|
uses: dagger/dagger-for-github@e47aba410ef9bb9ed81a4d2a97df31061e5e842e
|
|
env:
|
|
GO_MOD_DIR: ${{ inputs.go-mod-dir }}
|
|
VERSION: ${{ inputs.version }}
|
|
with:
|
|
verb: run
|
|
args: go run ./pkg/build/actions/bump-version -version=${VERSION}
|
|
- name: make gen-cue
|
|
shell: bash
|
|
run: make gen-cue
|