From df463687612482d66f0ed9d938aef279dba2a19c Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Thu, 6 Jan 2022 14:39:07 -0500 Subject: [PATCH] Use `jonabc/setup-licensed` in Licensed workflow --- .github/workflows/licensed.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/licensed.yml b/.github/workflows/licensed.yml index 4c1dfe5f..8220c67e 100644 --- a/.github/workflows/licensed.yml +++ b/.github/workflows/licensed.yml @@ -14,11 +14,11 @@ jobs: name: Check licenses steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 # prefer to use a full fetch for licensed workflows + # https://github.com/jonabc/setup-licensed/releases/tag/v1.1.1 + - uses: jonabc/setup-licensed@82c5f4d19e8968efa74a25b132922382c2671fe2 + with: + version: '3.x' - run: npm ci - - name: Install licensed - run: | - cd $RUNNER_TEMP - curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz - sudo tar -xzf licensed.tar.gz - sudo mv licensed /usr/local/bin/licensed - run: licensed status