Skip to content

Commit

Permalink
ci: add linter and update release workflow (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sondresjolyst authored Dec 3, 2024
1 parent fa896e7 commit e76c276
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 17 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 🧹 Lint

on:
pull_request:
branches:
- master
types:
- opened
- edited
- synchronize
- reopened

permissions: {}

jobs:
lint-codebase:
name: Lint codebase
uses: equinor/ops-actions/.github/workflows/[email protected]
permissions:
contents: read
statuses: write
with:
filter_regex_exclude: (.*CHANGELOG\.md$|docs/workflows/.*)

lint-pr:
name: Lint PR
uses: equinor/ops-actions/.github/workflows/[email protected]
with:
message: ${{ github.event.pull_request.title }}
17 changes: 0 additions & 17 deletions .github/workflows/release-please.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 🚀 Create release

on:
push:
branches:
- master

permissions: {}

jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
permissions:
contents: write # Required to update changelog file
pull-requests: write # Required to create release PRs
steps:
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f
with:
release-type: simple

0 comments on commit e76c276

Please sign in to comment.