mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-08-08 07:14:52 +02:00
39 lines
No EOL
898 B
YAML
39 lines
No EOL
898 B
YAML
name: Licensed
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
validate-cached-dependency-records:
|
|
runs-on: ubuntu-latest
|
|
name: Check licenses
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: npm ci --ignore-scripts
|
|
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '3.1.7'
|
|
|
|
- name: Install licensed tool
|
|
run: |
|
|
cd "$RUNNER_TEMP"
|
|
curl -Lfs -o licensed.tar.gz https://github.com/licensee/licensed/archive/refs/tags/v5.0.4.tar.gz
|
|
tar -xzf licensed.tar.gz
|
|
cd licensed-5.0.4
|
|
bundle install
|
|
|
|
- name: Check cached dependency records
|
|
working-directory: ${{ github.workspace }}
|
|
run: $RUNNER_TEMP/licensed-5.0.4/exe/licensed status |