Skip to content

Commit dc4274d

Browse files
committed
Setup github action with github-dependents-info
1 parent 41ff354 commit dc4274d

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/update.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Update
2+
run-name: Update deps list
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
concurrency:
8+
group: ${{ github.ref }}-${{ github.workflow }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
Setup:
13+
name: Setup
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/[email protected]
19+
20+
- name: Setup Node.js
21+
uses: actions/[email protected]
22+
23+
with:
24+
cache: npm
25+
check-latest: true
26+
node-version-file: .nvmrc
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v5
33+
34+
- name: Install github-dependents-info
35+
run: pip install -U github-dependents-info
36+
Get-latest-raw-deps:
37+
name: Get latests deps
38+
runs-on: ubuntu-latest
39+
permissions:
40+
contents: write
41+
pull-requests: write
42+
43+
steps:
44+
- name: Pipe our deps to a json file
45+
run: github-dependents-info --repo alphagov/govuk-frontend--sort stars --json > raw-deps.json
46+
47+
- name: testing testing
48+
run: cat raw-deps.json

0 commit comments

Comments
 (0)