Skip to content

Commit

Permalink
feat(build): use shared actions from common (#319)
Browse files Browse the repository at this point in the history
* fix runner

* use shared actions
  • Loading branch information
kengou authored Sep 9, 2024
1 parent 563f607 commit 7e0d98f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/ci-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,14 @@ jobs:
run: npm ci

reuse-compliance:
runs-on: [default]
steps:
- name: Checkout
uses: actions/checkout@v4

# https://github.com/fsfe/reuse-action
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v3
uses: cloudoperators/common/.github/workflows/shared-reuse.yaml@main

license-headers:
runs-on: [default]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}

- name: Check License Header
uses: apache/skywalking-eyes/[email protected]
with:
config: .github/licenserc.yaml
mode: fix
permissions:
contents: write # Only used when `apply_header: true` else the permission is `read` see: https://github.com/cloudoperators/common/blob/8f15c13b6f4c1631c7e6f6dff5c3300452e9b5b6/.github/workflows/shared-license.yaml#L21-L22
uses: cloudoperators/common/.github/workflows/shared-license.yaml@main
with:
apply_header: false

allowed-licenses:
needs: install-dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-title-lint-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
title-lint:
name: Validate PR title
runs-on: ubuntu-latest
runs-on: [default]
steps:
- name: CI Check Title
uses: amannn/action-semantic-pull-request@v5
Expand Down

0 comments on commit 7e0d98f

Please sign in to comment.