Merge pull request #1 from vkuttyp/copilot/add-topics-to-repo #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Set Repository Topics | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| workflow_dispatch: | ||
| permissions: | ||
| administration: write | ||
| jobs: | ||
| set-topics: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Set repository topics | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| await github.rest.repos.replaceAllTopics({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| names: [ | ||
| 'swift', | ||
| 'sql-server', | ||
| 'mssql', | ||
| 'freetds', | ||
| 'swift-package-manager', | ||
| 'database', | ||
| 'async-await', | ||
| 'ios', | ||
| 'macos', | ||
| 'linux' | ||
| ] | ||
| }); | ||
| console.log('Repository topics set successfully.'); | ||