fix: add licenses #134
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Licenses | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- v3 | |
- master | |
jobs: | |
licenses: | |
name: License compliance | |
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, 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: | |
author-email: | |
${{ secrets.ORY_BOT_PAT && | |
'[email protected]' || | |
format('{0}@users.noreply.github.com', github.actor) }} | |
author-name: ${{ secrets.ORY_BOT_PAT && 'ory-bot' || github.actor }} |