From 88ff5d6f1411cb4a9e6efc6d95d2dca9e5a41433 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Mon, 30 Dec 2024 10:42:11 +0100 Subject: [PATCH] chore: add license checker --- .github/workflows/licenses.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index 6fb85398..46c69da6 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -1,4 +1,4 @@ -name: Licenses +name: Check licenses on: pull_request: @@ -11,11 +11,8 @@ jobs: check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - name: Check licenses + uses: ory/ci/check-licenses@master with: - go-version: "1.23.2" - - uses: actions/setup-node@v2 - with: - node-version: "18" - - run: make licenses + token: ${{ secrets.ORY_BOT_PAT || secrets.GITHUB_TOKEN }} + write_if_match: ${{ github.ref == 'refs/heads/add-license-check' || github.ref == 'refs/heads/main' }}