mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-22 08:45:43 +02:00
29 lines
757 B
YAML
29 lines
757 B
YAML
name: Check Package Versions
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
execute-script:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
|
|
- name: Install dependencies
|
|
run: npm install @octokit/rest rxjs @octokit/plugin-rest-endpoint-methods typescript
|
|
|
|
- name: Compile TypeScript
|
|
run: npx tsc .github/workflows/get-versions.ts
|
|
|
|
- name: Run script
|
|
run: node .github/workflows/get-versions.js ${{ secrets.GITHUB_TOKEN }} ${{ github.event.inputs.package-name }} ${{ github.event.inputs.package-type }}
|
|
env:
|
|
GITHUB_API_URL: 'https://api.github.com'
|