setup-java/action.yml
2024-09-07 07:56:45 +00:00

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"