33 lines
851 B
YAML
33 lines
851 B
YAML
name: 'Action-template'
|
|
description: 'Github action template'
|
|
branding:
|
|
icon: file
|
|
color: orange
|
|
inputs:
|
|
sample-input:
|
|
description: 'input example'
|
|
default: 'default-value'
|
|
required: false
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Set GitHub Path example
|
|
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
|
|
shell: bash
|
|
env:
|
|
GITHUB_ACTION_PATH: ${{ github.action_path }}
|
|
|
|
- name: Set Github secret output result example
|
|
id: sets-a-secret
|
|
shell: bash
|
|
run: |
|
|
the_secret=$((RANDOM))
|
|
echo "::add-mask::$the_secret"
|
|
echo "secret-number=$the_secret" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Set Github output result example
|
|
id: sets-output
|
|
shell: bash
|
|
run: |
|
|
output_number=$((RANDOM))
|
|
echo "output-number=$output_number" >> "$GITHUB_OUTPUT" |