Skip to content

Commit

Permalink
trim the user input vesion to check major
Browse files Browse the repository at this point in the history
  • Loading branch information
gzukel committed Feb 15, 2024
1 parent 2fcd3ec commit ef3f08c
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,9 @@ jobs:
run: |
echo "Check Skipped, Mark Green for Pipeline Execution"
publish-release:
runs-on: buildjet-4vcpu-ubuntu-2004
timeout-minutes: 60
approval:
runs-on: ubuntu-latest
timeout-minutes: 10
needs:
- gosec
- gosec-cosmos
Expand All @@ -412,6 +412,23 @@ jobs:
- check-upgrade-handler-updated
- smoke-test
- build-test
steps:

- uses: trstringer/manual-approval@v1
with:
secret: ${{ github.TOKEN }}
approvers: gzukel
minimum-approvals: 1
issue-title: "Release Approval for version: ${{ github.event.inputs.version }}"
issue-body: "Please approve the release. Once approved the release pipeline will continue."
exclude-workflow-initiator-as-approver: false
additional-approved-words: ''
additional-denied-words: ''
publish-release:
runs-on: buildjet-4vcpu-ubuntu-2004
timeout-minutes: 60
needs:
- approval

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -447,17 +464,6 @@ jobs:
exit 1
fi
- uses: trstringer/manual-approval@v1
with:
secret: ${{ github.TOKEN }}
approvers: gzukel
minimum-approvals: 1
issue-title: "Release Approval for version: ${{ github.event.inputs.version }}"
issue-body: "Please approve the release. Once approved the release pipeline will continue."
exclude-workflow-initiator-as-approver: false
additional-approved-words: ''
additional-denied-words: ''

- name: Create Release Tag
shell: bash
run: |
Expand Down

0 comments on commit ef3f08c

Please sign in to comment.