Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Commit e2444a8

Browse files
committed
docs: sync repo information with data from package.json
1 parent b58a889 commit e2444a8

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Sync repository info from package.json
2+
3+
env:
4+
GH_TOKEN: ${{ secrets.UPDATE_REPO_INFO_PAT }}
5+
6+
on:
7+
push:
8+
branches:
9+
- saga
10+
11+
jobs:
12+
update_repo_info:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
# Currently ships with 2.3.0 which does not have repo edit
19+
- name: Update GitHub CLI
20+
run: |
21+
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
22+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
23+
sudo apt update
24+
sudo apt install gh
25+
gh --version
26+
27+
- name: Sync repository description
28+
run: gh repo edit --description "`cat package.json | jq -r '.description'`"
29+
30+
- name: Sync repository topics
31+
run: cat package.json | jq '.keywords[]' | xargs -I'{}' gh repo edit --add-topic {}
32+
33+
- name: Sync homepage
34+
run: gh repo edit --homepage "`cat package.json | jq -r '.homepage'`"

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212
},
1313
"homepage": "https://github.com/NordicSemiconductor/asset-tracker-cloud-eslint-config-typescript#readme",
1414
"keywords": [
15-
"Cloud",
16-
"IoT",
17-
"nRF Asset Tracker",
18-
"Nordic Semiconductor"
15+
"nrf-asset-tracker",
16+
"iot"
1917
],
2018
"author": "Nordic Semiconductor ASA | nordicsemi.no",
2119
"license": "BSD-3-Clause",

0 commit comments

Comments
 (0)