[ci] Check for full repository name in actions (#7038)

This allows forks of allwpilib owned by wpilibsuite to exist without patching the workflows.
This commit is contained in:
Ryan Blue
2024-09-07 13:53:23 -04:00
committed by GitHub
parent 46e64e2dcb
commit 2aef60d49c
3 changed files with 15 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ jobs:
publish:
name: "Documentation - Publish"
runs-on: ubuntu-22.04
if: github.repository_owner == 'wpilibsuite' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
if: github.repository == 'wpilibsuite/allwpilib' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
concurrency: ci-docs-publish
steps:
- uses: actions/checkout@v4