2 parents abba19d + 61c516c commit b6b9031Copy full SHA for b6b9031
1 file changed
.github/workflows/set-topics.yml
@@ -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