Skip to content

Commit

Permalink
implemented reusable github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashoechst committed Dec 1, 2020
1 parent 8d5861c commit 02aaaa3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
name: tests

on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y binfmt-support file kpartx parted qemu qemu-user-static unzip p7zip-full wget xz-utils
- name: Run pimod.sh examples/RPi-OpenWRT.Pifile
run: sudo ./pimod.sh examples/RPi-OpenWRT.Pifile
- name: Run pimod OpenWRT example
uses: jonashoechst/pimod@HEAD
with:
pifile: examples/RPi-OpenWRT.Pifile
16 changes: 16 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'pimod'
description: 'Reconfigure Raspberry Pi images with an easy, Docker-like configuration file'
inputs:
pifile:
description: 'Pifile to run'
required: true
default: 'Pifile'
runs:
using: "composite"
steps:
- run: sudo apt-get update
shell: bash
- run: sudo apt-get install -y binfmt-support file kpartx parted qemu qemu-user-static unzip p7zip-full wget xz-utils
shell: bash
- run: sudo ${{ github.action_path }}/pimod.sh ${{ inputs.pifile }}
shell: bash

0 comments on commit 02aaaa3

Please sign in to comment.