Skip to content

Commit

Permalink
Added hexagate test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mirooon committed Mar 4, 2025
1 parent b8797fb commit 8302d24
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/hexagateTestWorkflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Hexagate Test Workflow

# allows manual triggering with a required confirmation input to prevent accidental execution
# checks if the input confirmation is correctly typed as 'UNDERSTOOD' before proceeding
# checks out the repository to access the codebase
# logs test echo
# sends test slack message


on:
workflow_dispatch:
inputs:
warning: # "warning" starts with small letter because Hexagate lower case all keys
description: "TODO: By clicking the next button you are sending test message to slack. Please proceed with extreme caution !!! You must type 'UNDERSTOOD' to proceed"
required: true

jobs:
hexagate-test-workflow:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Check input
if: ${{ inputs.Warning != 'UNDERSTOOD' }}
run: |
echo -e "\033[31mYou must type 'UNDERSTOOD' to proceed. Please try again. \033[0m"
exit 1
- name: Debug Log - Test Workflow Triggered
run: echo "Hexagate test workflow has been successfully triggered."

- name: Send Reminder to Slack SC-general Channel
uses: slackapi/[email protected]
with:
webhook: ${{ secrets.SLACK_WEBHOOK_SC_GENERAL }}
webhook-type: incoming-webhook
payload: |
text: 'TEST - hexagate test workflow executed by ${{ github.actor }}'

0 comments on commit 8302d24

Please sign in to comment.