Repository navigation
Check sweep reuse for PR #2408
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: Acknowledge Sweep Reuse | |
| run-name: Check sweep reuse for PR #${{ github.event.issue.number }} | |
| on: | |
| issue_comment: | |
| types: [created, edited] | |
| permissions: {} | |
| concurrency: | |
| group: reuse-comment-${{ github.event.issue.number }} | |
| cancel-in-progress: false | |
| jobs: | |
| acknowledge: | |
| name: acknowledge | |
| if: >- | |
| github.event.issue.pull_request && | |
| (contains(github.event.comment.body, '/reuse-sweep-run') || | |
| contains(github.event.changes.body.from, '/reuse-sweep-run') || | |
| contains(github.event.comment.body, '/use') || | |
| contains(github.event.changes.body.from, '/use')) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| permissions: | |
| actions: read # Read workflow runs and artifacts. | |
| contents: read | |
| issues: write # Update comments, labels, and reactions. | |
| pull-requests: write # Publish PR feedback. | |
| steps: | |
| - name: Checkout trusted workflow code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| ref: ${{ github.sha }} # issue_comment uses the default-branch commit | |
| persist-credentials: false | |
| - name: Validate request and update reaction | |
| working-directory: inferencex-e2e | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: python3 -m infx.workflows.reuse_comment |