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' }}