CI: use -C when go-mod-dir is provided (#105851)
* 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
This commit is contained in:
@@ -44,13 +44,6 @@ jobs:
|
||||
VERSION: ${{ inputs.version }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Get vault secrets"
|
||||
id: vault-secrets
|
||||
uses: grafana/shared-workflows/actions/get-vault-secrets@main
|
||||
with:
|
||||
# Secrets placed in the ci/data/repo/grafana/grafana/delivery-bot-app path in Vault
|
||||
repo_secrets: |
|
||||
GRAFANA_DELIVERY_BOT_APP_PEM=delivery-bot-app:PRIVATE_KEY
|
||||
- if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') }}
|
||||
run: |
|
||||
{
|
||||
@@ -73,14 +66,14 @@ jobs:
|
||||
create_next_release_branch_grafana:
|
||||
name: Create next release branch (Grafana)
|
||||
needs: setup
|
||||
uses: ./.github/workflows/create-next-release-branch.yml
|
||||
uses: grafana/grafana/.github/workflows/create-next-release-branch.yml@main
|
||||
with:
|
||||
ownerRepo: 'grafana/grafana'
|
||||
source: ${{ needs.setup.outputs.release_branch }}
|
||||
create_next_release_branch_enterprise:
|
||||
name: Create next release branch (Grafana Enterprise)
|
||||
needs: setup
|
||||
uses: ./.github/workflows/create-next-release-branch.yml
|
||||
uses: grafana/grafana/.github/workflows/create-next-release-branch.yml@main
|
||||
with:
|
||||
ownerRepo: 'grafana/grafana-enterprise'
|
||||
source: ${{ needs.setup.outputs.release_branch }}
|
||||
@@ -88,7 +81,7 @@ jobs:
|
||||
needs:
|
||||
- setup
|
||||
- create_next_release_branch_grafana
|
||||
uses: ./.github/workflows/migrate-prs.yml
|
||||
uses: grafana/grafana/.github/workflows/migrate-prs.yml@main
|
||||
with:
|
||||
ownerRepo: 'grafana/grafana'
|
||||
from: ${{ needs.setup.outputs.release_branch }}
|
||||
@@ -97,14 +90,14 @@ jobs:
|
||||
needs:
|
||||
- setup
|
||||
- create_next_release_branch_enterprise
|
||||
uses: ./.github/workflows/migrate-prs.yml
|
||||
uses: grafana/grafana/.github/workflows/migrate-prs.yml@main
|
||||
with:
|
||||
ownerRepo: 'grafana/grafana-enterprise'
|
||||
from: ${{ needs.setup.outputs.release_branch }}
|
||||
to: ${{ needs.create_next_release_branch_enterprise.outputs.branch }}
|
||||
post_changelog_on_forum:
|
||||
needs: setup
|
||||
uses: ./.github/workflows/community-release.yml
|
||||
uses: grafana/grafana/.github/workflows/community-release.yml@main
|
||||
with:
|
||||
version: ${{ needs.setup.outputs.version }}
|
||||
dry_run: ${{ needs.setup.outputs.dry_run == 'true' }}
|
||||
@@ -113,7 +106,7 @@ jobs:
|
||||
# The github-release action retrieves the changelog using the /repos/grafana/grafana/contents/CHANGELOG.md API
|
||||
# endpoint.
|
||||
needs: setup
|
||||
uses: ./.github/workflows/github-release.yml
|
||||
uses: grafana/grafana/.github/workflows/github-release.yml@main
|
||||
with:
|
||||
version: ${{ needs.setup.outputs.version }}
|
||||
dry_run: ${{ needs.setup.outputs.dry_run == 'true' }}
|
||||
|
||||
Reference in New Issue
Block a user