diff --git a/README.md b/README.md index b724785..0053a0d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index c3f75f2..08ca8e0 100644 --- a/action.yml +++ b/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" \ No newline at end of file + apt install -y netcat