Compare commits
3 commits
feat/insta
...
main
Author | SHA1 | Date | |
---|---|---|---|
014ce605da | |||
d3fa0dcb96 | |||
1ac5adb151 |
5 changed files with 41 additions and 1 deletions
12
.forgejo/workflows/push.yml
Normal file
12
.forgejo/workflows/push.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
name: Push
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
static-analysis:
|
||||
runs-on: runner-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Validate Yaml
|
||||
run: pipx run pre-commit run check-yaml -a
|
||||
- name: Validate shell scripts
|
||||
run: pipx run pre-commit run shellcheck -a
|
10
.pre-commit-config.yaml
Normal file
10
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- repo: https://github.com/shellcheck-py/shellcheck-py
|
||||
rev: v0.10.0.1
|
||||
hooks:
|
||||
- id: shellcheck
|
11
README.md
Normal file
11
README.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Setup Spud Action
|
||||
|
||||
## Interface
|
||||
|
||||
```yaml
|
||||
inputs:
|
||||
version:
|
||||
description: "Spud version to install."
|
||||
```
|
||||
|
||||
If the `version` input is not provided, the latest version will be installed (see [spadinastan/spud](https://forge.karnov.club/spadinastan/spud)).
|
|
@ -1,10 +1,14 @@
|
|||
name: Setup Spud
|
||||
name: Setup Spud Tooling
|
||||
inputs:
|
||||
version:
|
||||
description: "Spud version to install."
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Ensure install directory exists and is on PATH
|
||||
run: |
|
||||
mkdir -p $HOME/.local/bin
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
- name: Pull pre-built binary
|
||||
env:
|
||||
SPUD_VERSION: ${{ inputs.version }}
|
||||
|
|
3
bootstrap.sh
Executable file
3
bootstrap.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
pipx run pre-commit install
|
Loading…
Reference in a new issue