Skip to content

Commit

Permalink
Migrate license to reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Nov 7, 2022
1 parent 80a2e8d commit a0a4dfc
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,10 @@ on:
- '**'
types: [ opened, synchronize, reopened ]

permissions:
contents: read

jobs:
license:
name: License Checker
runs-on: ubuntu-latest
steps:
- name: Check out code base
if: github.event_name == 'push'
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check out code base
if: github.event_name == 'pull_request'
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Check License Header
uses: apache/skywalking-eyes/header@501a28d2fb4a9b962661987e50cf0219631b32ff
uses: wabarc/.github/.github/workflows/reusable-license.yml@main

0 comments on commit a0a4dfc

Please sign in to comment.