mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-07-26 18:13:31 +00:00
Add repository guard (github.repository == 'velero-io/velero') to workflows that should only run on the upstream repo. This prevents unnecessary CI runs on forks like openshift/velero where these workflows either fail due to missing secrets/config or duplicate fork-specific CI. Guarded workflows: auto_assign_prs, auto_label_prs, auto_request_review, e2e-test-kind, nightly-trivy-scan, pr-changelog-check, pr-codespell, pr-filepath-check, pr-linter-check, prow-action, rebase, stale-issues. Intentionally left unguarded: pr-ci-check (useful for contributors on forks), get-go-version (reusable workflow_call only). Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
35 lines
828 B
YAML
35 lines
828 B
YAML
# Adds support for prow-like commands
|
|
# Uses .github/labels.yaml to define areas and kinds
|
|
name: "Prow github actions"
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
execute:
|
|
if: github.repository == 'velero-io/velero'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: jpmcb/prow-github-actions@v1.1.3
|
|
with:
|
|
# TODO: before allowing the /lgtm command, see if we can block merging if changelog labels are missing.
|
|
prow-commands: |
|
|
/approve
|
|
/area
|
|
/assign
|
|
/cc
|
|
/close
|
|
/hold
|
|
/kind
|
|
/milestone
|
|
/retitle
|
|
/remove
|
|
/reopen
|
|
/uncc
|
|
/unassign
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|