Experiment/runner (#2)
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2026-07-03 21:15:23 +00:00
parent ec2a17efd9
commit 281375a7dd
5 changed files with 204 additions and 10 deletions
@@ -0,0 +1,16 @@
name: '⚙️ Configure SSH Client'
description: 'Installs sshpass and configures known_hosts'
inputs:
ssh_host:
description: 'Remote server IP'
required: true
runs:
using: 'composite'
steps:
- shell: bash
run: |
sudo apt-get update && sudo apt-get install -y sshpass
mkdir -p ~/.ssh
ssh-keyscan -p 22 "${{ inputs.ssh_host }}" >> ~/.ssh/known_hosts
@@ -0,0 +1,26 @@
name: '🧼 Telegram message escape'
description: 'Automatically escapes dots, dashes, and exclamation marks for Telegram MarkdownV2'
inputs:
message:
description: 'The raw text string to escape'
required: true
outputs:
escaped_message:
description: 'The safely escaped string ready for Telegram'
value: ${{ steps.escape.outputs.result }}
runs:
using: 'composite'
steps:
- id: escape
shell: bash
run: |
RAW_MESSAGE="${{ inputs.message }}"
ESCAPED_MESSAGE=$(echo "$RAW_MESSAGE" | sed "s/-/\\\\-/g" | sed "s/\./\\\\./g" | sed "s/!/\\\\!/g")
echo "result<<EOF" >> $GITHUB_OUTPUT
echo "$ESCAPED_MESSAGE" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT