Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chris2fer authored Nov 9, 2023
1 parent c86728e commit 7bb56ba
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ on:
- cron: '0 9 * * 1'
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
DryRun:
description: 'Run the Nuke job in report mode'
required: true
default: 'warning'
default: 'Report'
type: choice
options:
- info
- warning
- debug
- Nuke
- Report
tags:
description: 'Test scenario tags'
required: false
Expand Down Expand Up @@ -92,16 +91,6 @@ jobs:
aws-nuke -c config.yml --force --force-sleep 5 -q
continue-on-error: true

- name: pushover-actions
uses: umahmood/pushover-actions@main
env:
PUSHOVER_TOKEN: ${{ secrets.PUSHOVER_TOKEN }}
PUSHOVER_USER: ${{ secrets.PUSHOVER_USER_TOKEN }}
with:
status: ${{ job.status }}
title: 'Repo. Activity Notification'
message: 'Hello World!'

- name: Configure other AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -115,3 +104,14 @@ jobs:
run: |
aws-nuke -c config.yml --force --force-sleep 5 -q
continue-on-error: true

- name: Notify
if: ${{ failure() }}
uses: umahmood/pushover-actions@main
env:
PUSHOVER_TOKEN: ${{ secrets.PUSHOVER_TOKEN }}
PUSHOVER_USER: ${{ secrets.PUSHOVER_USER_TOKEN }}
with:
status: ${{ job.status }}
title: 'Nuke-My-Shit Failure'
message: 'The automated Github action has encountered a failure'

0 comments on commit 7bb56ba

Please sign in to comment.