From 73b5ae449fdb0ff815807024389b54ea503c6195 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 24 Mar 2023 15:59:04 +0100 Subject: [PATCH] bootstrap --- .forgejo/workflows/integration.yml | 12 ++++++++++++ .forgejo/workflows/unit.yml | 0 .gitignore | 1 + action.yml | 23 +++++++++++++++++++++++ goodbye.sh | 3 +++ 5 files changed, 39 insertions(+) create mode 100644 .forgejo/workflows/integration.yml create mode 100644 .forgejo/workflows/unit.yml create mode 100644 .gitignore create mode 100644 action.yml create mode 100755 goodbye.sh diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml new file mode 100644 index 0000000..8404837 --- /dev/null +++ b/.forgejo/workflows/integration.yml @@ -0,0 +1,12 @@ +on: [ push ] +jobs: + integration: + runs-on: self-hosted + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - run: | + set -x + echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list && apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --quiet -y -t bullseye-backports git docker.io + diff --git a/.forgejo/workflows/unit.yml b/.forgejo/workflows/unit.yml new file mode 100644 index 0000000..e69de29 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..571f706 --- /dev/null +++ b/action.yml @@ -0,0 +1,23 @@ +name: 'Hello World' +description: 'Greet someone' +inputs: + who-to-greet: # id of input + description: 'Who to greet' + required: true + default: 'World' +outputs: + random-number: + description: "Random number" + value: ${{ steps.random-number-generator.outputs.random-number }} +runs: + using: "composite" + steps: + - run: echo Hello ${{ inputs.who-to-greet }}. + shell: bash + - id: random-number-generator + run: echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT + shell: bash + - run: echo "${{ github.action_path }}" >> $GITHUB_PATH + shell: bash + - run: goodbye.sh + shell: bash diff --git a/goodbye.sh b/goodbye.sh new file mode 100755 index 0000000..5633206 --- /dev/null +++ b/goodbye.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "Goodbye"