Add check licenses for this repo itself #2
Workflow file for this run
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
# A CI configuration to check for licenses in Dart files. | |
name: Licensecheck | |
# Callers of this workflow should use it as follows: | |
# | |
# name: Licensecheck | |
# on: | |
# pull_request: | |
# branches: [ main ] | |
# types: [opened, synchronize, reopened, labeled, unlabeled] | |
# push: | |
# tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ] | |
# jobs: | |
# licensecheck: | |
# uses: dart-lang/ecosystem/.github/workflows/check_licenses.yml@main | |
jobs: | |
licensecheck: | |
# These permissions are required for authentication using OIDC and to enable | |
# us to create comments on PRs. | |
permissions: | |
id-token: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab | |
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f | |
with: | |
sdk: stable | |
- name: Install firehose | |
run: dart pub global activate firehose | |
- name: Check package file licenses | |
if: ${{ github.event_name == 'pull_request' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ISSUE_NUMBER: ${{ github.event.number }} | |
PR_LABELS: "${{ join(github.event.pull_request.labels.*.name) }}" | |
run: dart pub global run firehose --check_licenses |