Skip to content

Commit 61c516c

Browse files
Copilotvkuttyp
andcommitted
Add GitHub Actions workflow to set repository topics
Co-authored-by: vkuttyp <146238+vkuttyp@users.noreply.github.com>
1 parent 25370a7 commit 61c516c

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/set-topics.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Set Repository Topics
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
workflow_dispatch:
9+
10+
permissions:
11+
administration: write
12+
13+
jobs:
14+
set-topics:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Set repository topics
18+
uses: actions/github-script@v7
19+
with:
20+
script: |
21+
await github.rest.repos.replaceAllTopics({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
names: [
25+
'swift',
26+
'sql-server',
27+
'mssql',
28+
'freetds',
29+
'swift-package-manager',
30+
'database',
31+
'async-await',
32+
'ios',
33+
'macos',
34+
'linux'
35+
]
36+
});
37+
console.log('Repository topics set successfully.');

0 commit comments

Comments
 (0)