Skip to content

Commit

Permalink
🔧 Enhance GitHub Action configuration and inputs
Browse files Browse the repository at this point in the history
🚀 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
  • Loading branch information
yuri-val committed Oct 31, 2024
1 parent 92881d6 commit 5d632f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ author: 'Yuri V <yuri.valigursky@gmail.com> (@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
Expand Down Expand Up @@ -42,13 +45,15 @@ runs:
message: "💬 <b>STARTED</b>: build <pre>${{ github.repository }}</pre>"

- name: Get Current Date
shell: bash
id: date
run: echo "date=$(date +'%y.%m.%d.%H%M')" >> $GITHUB_OUTPUT

- name: Checkout Repository
uses: actions/checkout@v4

- name: Get Current Commit SHA
shell: bash
id: get_sha
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

Expand Down

0 comments on commit 5d632f1

Please sign in to comment.