This repository was archived by the owner on Feb 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 5
5
6
6
on :
7
7
push :
8
- branches :
8
+ branches :
9
9
- saga
10
10
paths :
11
11
- " package.json"
12
12
- " .github/workflows/update-repo-info.yaml"
13
+ workflow_dispatch :
13
14
14
15
jobs :
15
16
update_repo_info :
16
17
runs-on : ubuntu-latest
17
18
steps :
18
19
- name : Checkout
19
20
uses : actions/checkout@v3
20
-
21
- # Currently ships with 2.3.0 which does not have repo edit
22
- - name : Update GitHub CLI
23
- run : |
24
- curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
25
- 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
26
- sudo apt update
27
- sudo apt install gh
28
- gh --version
29
-
21
+
30
22
- name : Sync repository description
31
23
run : gh repo edit --description "`cat package.json | jq -r '.description'`"
32
24
33
25
- name : Sync repository topics
34
26
run : cat package.json | jq '.keywords[]' | xargs -I'{}' gh repo edit --add-topic {}
35
27
36
28
- name : Sync homepage
37
- run : gh repo edit --homepage "`cat package.json | jq -r '.homepage'`"
29
+ run : gh repo edit --homepage "`cat package.json | jq -r '.homepage'`"
You can’t perform that action at this time.
0 commit comments