From e76c27696a66e987dab45082211c778ffcf6dd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Sj=C3=B8lyst?= Date: Tue, 3 Dec 2024 07:21:22 +0100 Subject: [PATCH] ci: add linter and update release workflow (#2) --- .github/workflows/lint.yml | 29 ++++++++++++++++++++++++++++ .github/workflows/release-please.yml | 17 ---------------- .github/workflows/release.yml | 20 +++++++++++++++++++ 3 files changed, 49 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/release-please.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..5792218 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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/super-linter.yml@v9.10.4 + permissions: + contents: read + statuses: write + with: + filter_regex_exclude: (.*CHANGELOG\.md$|docs/workflows/.*) + + lint-pr: + name: Lint PR + uses: equinor/ops-actions/.github/workflows/commitlint.yml@v9.10.4 + with: + message: ${{ github.event.pull_request.title }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml deleted file mode 100644 index 209fab9..0000000 --- a/.github/workflows/release-please.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: release-please -on: - push: - branches: - - master - -permissions: - contents: write - pull-requests: write - -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: googleapis/release-please-action@v4 - with: - release-type: simple \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..87eb0d3 --- /dev/null +++ b/.github/workflows/release.yml @@ -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