Skip to content

Commit 10a14c7

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

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/workflows/update.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
get-data:
13+
name: Setup
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/[email protected]
22+
23+
- name: Setup Node.js
24+
uses: actions/[email protected]
25+
26+
with:
27+
cache: npm
28+
check-latest: true
29+
node-version-file: .nvmrc
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: GitHub Dependents Info
35+
uses: nvuillam/[email protected]
36+
37+
with:
38+
repo: 'alphagov/govuk-frontend'
39+
sort: stars
40+
markdownfile: test.md
41+
json:
42+
43+
- name: Create Pull Request
44+
id: cpr
45+
uses: peter-evans/create-pull-request@v6
46+
with:
47+
branch: github-dependents-info-auto-update
48+
commit-message: "[GitHub Dependents Info] test"
49+
delete-branch: true
50+
title: "[GitHub Dependents Info] test"
51+
body: "_Generated with [github-dependents-info](https://github.com/nvuillam/github-dependents-info), by [Nicolas Vuillamy](https://github.com/nvuillam)_"

test.md

Whitespace-only changes.

0 commit comments

Comments
 (0)