feature: v1.0.0 of the setup netcat action

This commit is contained in:
RouxAntoine 2024-09-05 20:33:03 +02:00
parent 5a0bb9f2eb
commit acd91548d4
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
2 changed files with 12 additions and 27 deletions

View File

@ -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

View File

@ -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