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