Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanHoey96 committed Mar 19, 2024
1 parent f7c69b2 commit a6ba016
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/parsegithubissue.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Auto shutdown exclusion requests
name: Auto Parse github form
run-name: ${{ github.actor }} - issue:${{ github.event.issue.number }}
on:
issues:
Expand Down Expand Up @@ -152,6 +152,11 @@ jobs:
${{ env.ISSUE_COMMENT }}
Please edit this issue and select "Update comment" to resubmit.
#End workflow if for processing finds an error
- name: exit flow if approver == requester
if: env.PROCESS_SUCCESS != 'true'
run: exit 1

# Login to Azure CLI (for cost analysis)
- name: 'Az CLI login'
uses: azure/login@v1
Expand Down Expand Up @@ -221,9 +226,11 @@ jobs:
labels: "Cost Error"

#Set approval_state environment var to auto-approved if cost value is less than £5,000
- name: set auto-approved status
- name: set approved status
if: env.COST_DETAILS < 5000
run: echo "APPROVAL_STATE=auto-approved" >> $GITHUB_ENV
run: |
echo "APPROVAL_STATE=auto-approved" >> $GITHUB_ENV
echo "APPROVAL_COMMENT=Auto approved" >> $GITHUB_ENV
#Add auto approved label if approval_state == auto-approved
- name: Add auto-approved label
Expand Down

0 comments on commit a6ba016

Please sign in to comment.