-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' |