From 8302d2448c26b8a30d44b1b6e0096a962f5051db Mon Sep 17 00:00:00 2001 From: Michal Mironczuk Date: Tue, 4 Mar 2025 11:13:46 +0100 Subject: [PATCH] Added hexagate test workflow --- .github/workflows/hexagateTestWorkflow.yml | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/hexagateTestWorkflow.yml diff --git a/.github/workflows/hexagateTestWorkflow.yml b/.github/workflows/hexagateTestWorkflow.yml new file mode 100644 index 000000000..d227c3fff --- /dev/null +++ b/.github/workflows/hexagateTestWorkflow.yml @@ -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/checkout@v4.1.7 + + - 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/slack-github-action@v2.0.0 + with: + webhook: ${{ secrets.SLACK_WEBHOOK_SC_GENERAL }} + webhook-type: incoming-webhook + payload: | + text: 'TEST - hexagate test workflow executed by ${{ github.actor }}'