feature: v1.0.0 of the setup netcat action
This commit is contained in:
parent
5a0bb9f2eb
commit
acd91548d4
@ -1,2 +1,3 @@
|
|||||||
# action-template
|
# setup-netcat
|
||||||
github action template
|
|
||||||
|
GiHhub action to setup netcat on an ubuntu runner with the apt package manager
|
||||||
|
34
action.yml
34
action.yml
@ -1,33 +1,17 @@
|
|||||||
name: 'Action-template'
|
name: 'setup-netcat'
|
||||||
description: 'Github action template'
|
description: 'Github action to setup netcat tool'
|
||||||
branding:
|
branding:
|
||||||
icon: file
|
icon: search
|
||||||
color: orange
|
color: blue
|
||||||
inputs:
|
|
||||||
sample-input:
|
|
||||||
description: 'input example'
|
|
||||||
default: 'default-value'
|
|
||||||
required: false
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Set GitHub Path example
|
- name: Update apt index
|
||||||
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
|
run: |
|
||||||
|
apt update
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
|
||||||
GITHUB_ACTION_PATH: ${{ github.action_path }}
|
|
||||||
|
|
||||||
- name: Set Github secret output result example
|
- name: Install netcat
|
||||||
id: sets-a-secret
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
the_secret=$((RANDOM))
|
apt install -y netcat
|
||||||
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"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user