Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Release Please

on:
Expand All @@ -11,20 +12,12 @@ permissions:

jobs:
release-please:
runs-on: ubuntu-latest
if: ${{ github.repository == 'grafana/flint' }}
runs-on: ubuntu-24.04
steps:
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
id: release-please
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/config/release-please-config.json
manifest-file: .github/config/.release-please-manifest.json

- name: Remind to reopen PR for CI
if: steps.release-please.outputs.prs_created == 'true'
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ fromJSON(steps.release-please.outputs.pr).number }}
run: |
gh pr comment "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --body "> [!IMPORTANT]
> CI checks don't trigger automatically on release-please PRs (created with \`GITHUB_TOKEN\`).
> Please **close and reopen** this PR to start CI."
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ description = "Auto-fix lint issues and regenerate tracked deps"
run = "AUTOFIX=true mise run lint"
```

## Example

See [grafana/docker-otel-lgtm](https://github.com/grafana/docker-otel-lgtm) for a real-world example of a repository using flint. Its [CONTRIBUTING.md](https://github.com/grafana/docker-otel-lgtm/blob/main/CONTRIBUTING.md) describes the developer workflow, and its [mise.toml](https://github.com/grafana/docker-otel-lgtm/blob/main/mise.toml) shows how the tasks are wired up.
Comment thread
zeitlinger marked this conversation as resolved.

## Tasks

### `lint:super-linter`
Expand Down