Repository navigation
Refresh eShop sample to Radius extensibility model; remove old sample #537
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
| # yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json | |
| --- | |
| name: radius-bot | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: {} | |
| jobs: | |
| radius-bot: | |
| name: Run Radius Bot script | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| permissions: | |
| contents: read # Required for actions/checkout | |
| steps: | |
| # Generate a short-lived installation token scoped to this repository. | |
| # Requires the RADIUS_TRIAGE_BOT App installed on radius-project/samples with: | |
| # Issues: Read & Write | |
| - name: Get App Token | |
| id: app-token | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| with: | |
| client-id: ${{ secrets.RADIUS_TRIAGE_BOT_CLIENT_ID }} | |
| private-key: ${{ secrets.RADIUS_TRIAGE_BOT_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| permission-issues: write | |
| repositories: samples | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| sparse-checkout: | | |
| .github/scripts/radius-bot.js | |
| sparse-checkout-cone-mode: false | |
| persist-credentials: false | |
| - name: Comment analyzer | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| script: | | |
| const script = require('./.github/scripts/radius-bot.js') | |
| await script({github, context}) |