Skip to content

Commit

Permalink
chore: separate steps and add needs check-license
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo-battista committed Jun 27, 2023
1 parent df7edb8 commit da4f1f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/check-copyright-license.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@

# Workflow name
name: 'Check copyright license on files'

# Event for the workflow
on:
workflow_dispatch:
pull_request:
branches:
- "main"
workflow_call:

# List of jobs
jobs:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/pr-build-test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@

# Workflow name
name: 'Build and Test'

# Event for the workflow
on:
workflow_dispatch:
workflow_run:
workflows: ["Check copyright license on files"]
types:
- completed
pull_request:
branches:
- "main"

# List of jobs
jobs:
Check-License:
uses: ./.github/workflows/check-copyright-license.yml
Build-Test:
runs-on: ubuntu-latest
needs: Check-License
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -24,8 +25,6 @@ jobs:
version: 8.6.1
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check Copyright license
uses: ./.github/workflows/check-copyright-license
- name: Build package
run: pnpm build
- name: Test
Expand Down

0 comments on commit da4f1f6

Please sign in to comment.