Skip to content

Commit 8f7bf9a

Browse files
authored
ci: improve release-please PR workflow and exclude generated files from linting (#11)
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent e714608 commit 8f7bf9a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/config/super-linter.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FILTER_REGEX_EXCLUDE=.*renovate-tracked-deps\.json
1+
FILTER_REGEX_EXCLUDE=(.*renovate-tracked-deps\.json|CHANGELOG\.md)
22
IGNORE_GITIGNORED_FILES=true
33
LOG_LEVEL=ERROR
44

.github/workflows/release-please.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
17+
id: release-please
1718
with:
1819
config-file: .github/config/release-please-config.json
1920
manifest-file: .github/config/.release-please-manifest.json
21+
22+
- name: Remind to reopen PR for CI
23+
if: steps.release-please.outputs.prs_created == 'true'
24+
env:
25+
GH_TOKEN: ${{ github.token }}
26+
PR_NUMBER: ${{ fromJSON(steps.release-please.outputs.pr).number }}
27+
run: |
28+
gh pr comment "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --body "> [!IMPORTANT]
29+
> CI checks don't trigger automatically on release-please PRs (created with \`GITHUB_TOKEN\`).
30+
> Please **close and reopen** this PR to start CI."

0 commit comments

Comments
 (0)