From 013cf4a7e38a06b063f2ab485a3c8f73c856963e Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Thu, 2 Jan 2025 16:31:55 +0100 Subject: [PATCH] fix: add licenses --- .github/workflows/licenses.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index 9ef147d..d6fd4ba 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -5,17 +5,28 @@ on: push: branches: - main + - v3 - master jobs: - check: + licenses: + name: License compliance runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - name: Install script + uses: ory/ci/licenses/setup@master with: - go-version: "1.18" - - uses: actions/setup-node@v2 + token: ${{ secrets.ORY_BOT_PAT || secrets.GITHUB_TOKEN }} + - name: Check licenses + uses: ory/ci/licenses/check@master + - name: Write, commit, push licenses + uses: ory/ci/licenses/write@master + if: + ${{ github.ref == 'refs/heads/main' || github.ref == + 'refs/heads/master' || github.ref == 'refs/heads/v3' }} with: - node-version: "18.10" - - run: make licenses + author-email: + ${{ secrets.ORY_BOT_PAT && + '60093411+ory-bot@users.noreply.github.com' || + format('{0}@users.noreply.github.com', github.actor) }} + author-name: ${{ secrets.ORY_BOT_PAT && 'ory-bot' || github.actor }}