Skip to content

Commit 2a556df

Browse files
committed
PR validation
1 parent e295b20 commit 2a556df

File tree

5 files changed

+46
-12
lines changed

5 files changed

+46
-12
lines changed

.github/workflows/ci.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: ci
3+
4+
on: # yamllint disable-line rule:truthy
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
validation:
12+
runs-on: ubuntu-latest
13+
name: Validate a Pull Request
14+
steps:
15+
- uses: actions/checkout@v1
16+
17+
- name: Run yamllint
18+
uses: ibiqlik/[email protected]
19+
20+
- name: Run ShellCheck
21+
uses: ludeeus/action-shellcheck@master

.github/workflows/release-drafter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Release Drafter
22

3-
on:
3+
on: # yamllint disable-line rule:truthy
44
push:
55
branches:
66
- master

.yamllint

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
# Disable requirement for `---` at the beginning of each file
6+
document-start: disable

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ This assumption is made so this action works well with [aurpublish].
1414

1515
### `pkgname`
1616

17-
**Required** The `pkgname` of the package to be validated.
17+
**Required** Path to DIRECTORY where the PKGBUILD file is.
18+
Assumes the directory is the name of package, ie /path/to/pkgname/'
1819

1920
## Example usage
2021

action.yml

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
1-
name: 'Arch Linux PKGBUILD builder action'
2-
description: 'Builds an validates PKGBUILD definition'
1+
name: Arch Linux PKGBUILD builder action
2+
description: Builds an validates PKGBUILD definition
33

44
branding:
5-
icon: 'triangle'
6-
color: 'blue'
5+
icon: triangle
6+
color: blue
77

88
inputs:
99
pkgname:
10-
description: 'Path to DIRECTORY where the PKGBUILD file is. Assumes the directory is the name of package, ie /path/to/pkgname/'
10+
description: >-
11+
Path to DIRECTORY where the PKGBUILD file is.
12+
Assumes the directory is the name of package, ie /path/to/pkgname/
1113
required: true
1214
target:
13-
description: 'Validation target. Can be one of: "pkgbuild", "srcinfo"'
15+
description: >-
16+
Validation target.
17+
Can be one of: "pkgbuild", "srcinfo", "run"
1418
required: true
1519
default: 'pkgbuild'
1620
command:
17-
description: 'Command to run after package installation'
21+
description: >-
22+
Command to run after package installation.
23+
Used when target=run
1824
required: false
1925
debug:
20-
description: 'Turns debugging on'
26+
description: Turns debugging on
2127
required: false
2228

2329
runs:
24-
using: 'docker'
25-
image: 'Dockerfile'
30+
using: docker
31+
image: Dockerfile
2632
args:
2733
- ${{ inputs.target }}
2834
- ${{ inputs.pkgname }}

0 commit comments

Comments
 (0)