bootstrap

This commit is contained in:
Earl Warren 2023-03-24 15:59:04 +01:00
commit 73b5ae449f
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
5 changed files with 39 additions and 0 deletions

View file

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

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*~

23
action.yml Normal file
View file

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

3
goodbye.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
echo "Goodbye"