This repository was archived by the owner on Feb 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +36
-4
lines changed Expand file tree Collapse file tree 2 files changed +36
-4
lines changed Original file line number Diff line number Diff line change
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'`"
Original file line number Diff line number Diff line change 12
12
},
13
13
"homepage" : " https://github.com/NordicSemiconductor/asset-tracker-cloud-eslint-config-typescript#readme" ,
14
14
"keywords" : [
15
- " Cloud" ,
16
- " IoT" ,
17
- " nRF Asset Tracker" ,
18
- " Nordic Semiconductor"
15
+ " nrf-asset-tracker" ,
16
+ " iot"
19
17
],
20
18
"author" : " Nordic Semiconductor ASA | nordicsemi.no" ,
21
19
"license" : " BSD-3-Clause" ,
You can’t perform that action at this time.
0 commit comments