Add gemini-testing-sql-js w/ npm auto-update #2073
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: Check packages | |
on: [pull_request] | |
jobs: | |
robotcdnjs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: download checker | |
uses: wei/wget@v1 | |
with: | |
args: https://github.com/cdnjs/tools/releases/latest/download/checker | |
- run: sudo chmod +x ./checker | |
- name: find PR | |
id: pr | |
run: | | |
number=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") | |
echo "##[set-output name=number;]$number" | |
- name: find modified packages | |
id: diff | |
uses: dorner/[email protected] | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
plaintext: true | |
prNumber: ${{ steps.pr.outputs.number }} | |
- name: lint package | |
id: lint | |
run: bash ./scripts/lint.sh \ | |
${{ steps.diff.outputs.files_modified }} \ | |
${{ steps.diff.outputs.files_added }} | |
# install glob | |
- uses: actions/checkout@v2 | |
with: | |
repository: cdnjs/glob | |
path: ./glob | |
- run: cd ${{ github.workspace }}/glob && npm install | |
- name: compute files | |
id: files | |
env: | |
DOCKER_IMAGE: ghcr.io/cdnjs/tools:cf63aa8265f012629ca4dad9d431f90311d68bcc2 | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: bash ./scripts/show-files.sh \ | |
${{ steps.diff.outputs.files_modified }} \ | |
${{ steps.diff.outputs.files_added }} |