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. secrets: GRAFANA_MISC_STATS_API_KEY: required: true GRAFANABOT_FORUM_KEY: required: true 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 jobs: main: runs-on: ubuntu-latest steps: - 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: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }} community_api_key: ${{ secrets.GRAFANABOT_FORUM_KEY }} community_api_username: grafanabot dry_run: ${{ inputs.dry_run }}