From 6ef6ea14c1e96f30efeab96327b4909c32b582bc Mon Sep 17 00:00:00 2001 From: sk593 Date: Fri, 15 Nov 2024 14:32:03 -0800 Subject: [PATCH] add approval workflow Signed-off-by: sk593 --- .github/workflows/approve-publish.yaml | 19 +++++++++++++++++++ .github/workflows/publish-bicep.yaml | 7 +++++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/approve-publish.yaml diff --git a/.github/workflows/approve-publish.yaml b/.github/workflows/approve-publish.yaml new file mode 100644 index 00000000..145acbe2 --- /dev/null +++ b/.github/workflows/approve-publish.yaml @@ -0,0 +1,19 @@ +name: Approve Publish Bicep Types + +on: + pull_request: + branches: + - main + - features/* + - release/* + +jobs: + approve-publish: + name: "Approve Publish Bicep Types" + runs-on: ubuntu-latest + environment: publish-bicep + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Publish Bicep + run: echo "Publishing Bicep types..." \ No newline at end of file diff --git a/.github/workflows/publish-bicep.yaml b/.github/workflows/publish-bicep.yaml index 441d6de0..a17e1601 100644 --- a/.github/workflows/publish-bicep.yaml +++ b/.github/workflows/publish-bicep.yaml @@ -24,7 +24,11 @@ on: pull_request: branches: - main - workflow_dispatch: + workflow_run: + workflows: ["Approve Publish Bicep Types"] + types: + - completed + workflow_dispatch: inputs: {} permissions: @@ -42,7 +46,6 @@ jobs: build-and-push-bicep-types: name: Publish Radius bicep types to ACR runs-on: ubuntu-latest - environment: publish-bicep steps: - name: Check out code uses: actions/checkout@v4