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

Commit 3d302b7

Browse files
committed
docs: use gh version which is shipped with Actions
1 parent 80d5d50 commit 3d302b7

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/update-repo-info.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,25 @@ env:
55

66
on:
77
push:
8-
branches:
8+
branches:
99
- saga
1010
paths:
1111
- "package.json"
1212
- ".github/workflows/update-repo-info.yaml"
13+
workflow_dispatch:
1314

1415
jobs:
1516
update_repo_info:
1617
runs-on: ubuntu-latest
1718
steps:
1819
- name: Checkout
1920
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+
3022
- name: Sync repository description
3123
run: gh repo edit --description "`cat package.json | jq -r '.description'`"
3224

3325
- name: Sync repository topics
3426
run: cat package.json | jq '.keywords[]' | xargs -I'{}' gh repo edit --add-topic {}
3527

3628
- 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'`"

0 commit comments

Comments
 (0)