[mimir-distributed-release-5.3] Update workflows to use actions that don't need organization secrets #4789
Workflow file for this run
This file contains 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: Run commands when issues or PRs are labeled | |
on: | |
issues: | |
types: [labeled] | |
pull_request: | |
types: [labeled] | |
jobs: | |
main: | |
if: ${{ github.actor != 'dependabot[bot]' && (github.event.pull_request == false || github.event.pull_request.head.repo.full_name == github.repository) }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Actions | |
uses: actions/checkout@v4 | |
with: | |
repository: "grafana/grafana-github-actions" | |
path: ./actions | |
ref: main | |
- name: Install Actions | |
run: npm install --production --prefix ./actions | |
- name: Run Commands | |
uses: ./actions/commands | |
with: | |
token: ${{secrets.ISSUE_COMMANDS_TOKEN}} | |
configPath: issue_and_pr_commands |