name: Create community release post on: workflow_call: inputs: version: type: string required: true description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch, major.minor.patch-preview or major.minor.patch-preview format. example: 7.4.3, 7.4.3-preview or 7.4.3-preview1' dry_run: type: boolean required: false default: false description: When enabled, this workflow will print a preview instead of creating an actual post. workflow_dispatch: inputs: version: type: string required: true description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch, major.minor.patch-preview or major.minor.patch-preview format. example: 7.4.3, 7.4.3-preview or 7.4.3-preview1' dry_run: type: boolean required: false default: false description: When enabled, this workflow will print a preview instead of creating an actual post. permissions: contents: read id-token: write jobs: main: 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/repo/grafana/grafana/community_release path in Vault repo_secrets: | GRAFANA_MISC_STATS_API_KEY=community_release:GRAFANA_MISC_STATS_API_KEY GRAFANABOT_FORUM_KEY=community_release:GRAFANABOT_FORUM_KEY - name: Run community-release (manually invoked) uses: grafana/grafana-github-actions-go/community-release@main with: token: ${{ secrets.GITHUB_TOKEN }} version: ${{ inputs.version }} metrics_api_key: ${{ env.GRAFANA_MISC_STATS_API_KEY }} community_api_key: ${{ env.GRAFANABOT_FORUM_KEY }} community_api_username: grafanabot dry_run: ${{ inputs.dry_run }}