Run upstream watcher only on GitHub

This commit is contained in:
2026-07-20 11:41:52 -07:00
parent 3bb0877034
commit b25ac238f5
2 changed files with 5 additions and 0 deletions

View File

@@ -170,6 +170,10 @@ class WatcherTest < Minitest::Test
def test_workflow_can_only_update_manifests_and_open_a_pr
workflow = File.read(File.join(ROOT, ".github/workflows/watch-upstream.yml"))
assert_match(
/\n open-compatibility-pr:\n if: github\.server_url == 'https:\/\/github\.com'\n runs-on:/,
workflow
)
assert_includes workflow, "contents: write"
assert_includes workflow, "pull-requests: write"
assert_includes workflow, "git add manifests/image-matrix.json manifests/upstream.json"