Skip to content

Commit

Permalink
add approval workflow
Browse files Browse the repository at this point in the history
Signed-off-by: sk593 <[email protected]>
  • Loading branch information
sk593 committed Nov 15, 2024
1 parent 9885fca commit 6ef6ea1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/approve-publish.yaml
Original file line number Diff line number Diff line change
@@ -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..."
7 changes: 5 additions & 2 deletions .github/workflows/publish-bicep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ on:
pull_request:
branches:
- main
workflow_dispatch:
workflow_run:
workflows: ["Approve Publish Bicep Types"]
types:
- completed
workflow_dispatch:
inputs: {}

permissions:
Expand All @@ -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
Expand Down

0 comments on commit 6ef6ea1

Please sign in to comment.