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

Commit cc8bbc8

Browse files
committed
ci(repo-info): only run if package.json changes
1 parent c55d83d commit cc8bbc8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@ env:
55

66
on:
77
push:
8-
branches:
8+
branches:
99
- saga
10+
paths:
11+
- "package.json"
12+
- ".github/workflows/update-repo-info.yaml"
1013

1114
jobs:
1215
update_repo_info:
1316
runs-on: ubuntu-latest
1417
steps:
1518
- name: Checkout
1619
uses: actions/checkout@v2
17-
20+
1821
# Currently ships with 2.3.0 which does not have repo edit
1922
- name: Update GitHub CLI
2023
run: |
@@ -31,4 +34,4 @@ jobs:
3134
run: cat package.json | jq '.keywords[]' | xargs -I'{}' gh repo edit --add-topic {}
3235

3336
- name: Sync homepage
34-
run: gh repo edit --homepage "`cat package.json | jq -r '.homepage'`"
37+
run: gh repo edit --homepage "`cat package.json | jq -r '.homepage'`"

0 commit comments

Comments
 (0)