From 7e4e76a82c482cb8b4a9b5092c72048d98573be8 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Mon, 19 Dec 2022 11:59:10 -0800 Subject: [PATCH] only run openapi workflow when PR is initially opened (#33662) --- .github/workflows/openapi-decorate.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/openapi-decorate.yml b/.github/workflows/openapi-decorate.yml index a033f27367..4f24464c3a 100644 --- a/.github/workflows/openapi-decorate.yml +++ b/.github/workflows/openapi-decorate.yml @@ -6,6 +6,10 @@ name: OpenAPI generate decorated schema files on: pull_request: + # This prevents the workflow from running continuously. We only want + # this workflow to run once on the initial open. + types: + - opened permissions: contents: write