Fix: Adding sparse checkout to issue triage workflow (#109060)

* adding sparse checkout

* adding checkout step if we want to run triage
This commit is contained in:
Timur Olzhabayev
2025-08-01 17:46:29 +02:00
committed by GitHub
parent b333b67aea
commit 4287734114
+7 -1
View File
@@ -88,7 +88,6 @@ jobs:
private-key: ${{ env.GITHUB_APP_PRIVATE_KEY }}
permission-members: read
permission-issues: write
- name: Check if member of grafana org
id: check-if-grafana-org-member
continue-on-error: true
@@ -96,6 +95,13 @@ jobs:
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
ACTOR: ${{ github.actor }}
- name: Checkout
if: steps.check-if-grafana-org-member.outputs.is_grafana_org_member != 'true' && github.event.issue.author_association != 'MEMBER' && github.event.issue.author_association != 'OWNER'
uses: actions/checkout@v4 # v4.2.2
with:
persist-credentials: false
sparse-checkout: |
.github/workflows/auto-triager
- name: Send issue to the auto triager action
id: auto_triage
if: steps.check-if-grafana-org-member.outputs.is_grafana_org_member != 'true' && github.event.issue.author_association != 'MEMBER' && github.event.issue.author_association != 'OWNER'