From 5d632f1526200418727993ed72f6ae7804845a30 Mon Sep 17 00:00:00 2001 From: Yuri V Date: Thu, 31 Oct 2024 09:32:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Enhance=20GitHub=20Action=20conf?= =?UTF-8?q?iguration=20and=20inputs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿš€ Improvements to the action.yml file: - ๐Ÿ”‘ Add `github_token` as a new required input for authentication - ๐Ÿš Specify `shell: bash` for date and commit SHA steps - ๐Ÿงน Remove extra whitespace for better code consistency - ๐Ÿ”„ Ensure proper execution of shell commands within the composite action --- action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 04db9e4..22e2e92 100644 --- a/action.yml +++ b/action.yml @@ -7,8 +7,11 @@ author: 'Yuri V (@yuri-val)' branding: icon: 'upload-cloud' color: 'orange' - + inputs: + github_token: + description: 'GitHub token for authentication' + required: true telegram_to: description: 'Telegram recipient/chat ID' required: true @@ -42,6 +45,7 @@ runs: message: "๐Ÿ’ฌ STARTED: build
${{ github.repository }}
" - name: Get Current Date + shell: bash id: date run: echo "date=$(date +'%y.%m.%d.%H%M')" >> $GITHUB_OUTPUT @@ -49,6 +53,7 @@ runs: uses: actions/checkout@v4 - name: Get Current Commit SHA + shell: bash id: get_sha run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT