Skip to content

Commit

Permalink
use environments for approval
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Aug 25, 2022
1 parent 85077ea commit 8ae2dc2
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@ jobs:
copy_artifact_rc:
name: copy wheel to rc folder
runs-on: ubuntu-latest
environment: 'rc'
needs: build_and_publish
steps:
- name: wait for approval
uses: trstringer/manual-approval@v1
if: ${{ !env.ACT }}
with:
secret: ${{ github.TOKEN }}
approvers: digorgonzola
# - name: wait for approval
# uses: trstringer/manual-approval@v1
# if: ${{ !env.ACT }}
# with:
# secret: ${{ github.TOKEN }}
# approvers: digorgonzola

- uses: unfor19/install-aws-cli-action@master
if: ${{ env.ACT }}
Expand All @@ -99,16 +100,17 @@ jobs:
copy_artifact_prod:
name: copy wheel to prod folder
runs-on: ubuntu-latest
environment: 'prod'
needs:
- build_and_publish
- copy_artifact_rc
steps:
- name: wait for approval
uses: trstringer/manual-approval@v1
if: ${{ !env.ACT }}
with:
secret: ${{ github.TOKEN }}
approvers: digorgonzola
# - name: wait for approval
# uses: trstringer/manual-approval@v1
# if: ${{ !env.ACT }}
# with:
# secret: ${{ github.TOKEN }}
# approvers: digorgonzola

- uses: unfor19/install-aws-cli-action@master
if: ${{ env.ACT }}
Expand Down

0 comments on commit 8ae2dc2

Please sign in to comment.