From 7ba40649aea8bbadc478c01f97ff6231fb492fb8 Mon Sep 17 00:00:00 2001 From: hackerman <3372410+aeneasr@users.noreply.github.com> Date: Mon, 30 Dec 2024 12:17:52 +0100 Subject: [PATCH] feat: add license checker to all repositories (#226) --- .../common/.github/workflows/licenses.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 templates/repository/common/.github/workflows/licenses.yml diff --git a/templates/repository/common/.github/workflows/licenses.yml b/templates/repository/common/.github/workflows/licenses.yml new file mode 100644 index 0000000..d28ace5 --- /dev/null +++ b/templates/repository/common/.github/workflows/licenses.yml @@ -0,0 +1,22 @@ +name: Licenses + +on: + pull_request: + push: + branches: + - main + - master + +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Install script + uses: ory/ci/licenses/setup@master + with: + token: ${{ secrets.ORY_BOT_PAT || secrets.GITHUB_TOKEN }} + - name: Check licenses + uses: ory/ci/licenses/check@master + - name: Write licenses + uses: ory/ci/licenses/write@master + if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' }}