feat: add more examples workflow
CD / Publish container image (push) Failing after 6m54s

This commit is contained in:
Ahmad Husen
2021-05-19 20:24:47 +07:00
committed by GitHub
parent 4ea2917c6c
commit 93e14b2832
+79 -1
View File
@@ -27,7 +27,7 @@ Following inputs can be used as `step.with` keys
| `flags` | String | `-cfs --noconfirm` | `false` | Flags after `makepkg` command. Leave this empty will disable this command. | | `flags` | String | `-cfs --noconfirm` | `false` | Flags after `makepkg` command. Leave this empty will disable this command. |
### Examples ### Examples
#### Basic #### 1. Basic
This action will run `makepkg -cfs --noconfirm` command, then validate PKGBUILD with namcap. This action will run `makepkg -cfs --noconfirm` command, then validate PKGBUILD with namcap.
@@ -42,9 +42,87 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate package - name: Validate package
uses: datakrama/archlinux-package-action@v1 uses: datakrama/archlinux-package-action@v1
``` ```
#### 2. Only generate .SRCINFO
```yaml
name: CI
on:
push:
branches: main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate package
uses: datakrama/archlinux-package-action@v1
with:
flags: ''
namcap: false
srcinfo: true
```
#### 3. Only update checksums on PKGBUILD
```yaml
name: CI
on:
push:
branches: main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate package
uses: datakrama/archlinux-package-action@v1
with:
flags: ''
namcap: false
updpkgsums: true
```
#### 4. Custom path & custom flags
```yaml
name: CI
on:
push:
branches: main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate package
uses: datakrama/archlinux-package-action@v1
with:
path: $GITHUB_WORKSPACE/package
flags: '-si --noconfirm'
namcap: false
```
## License ## License
The scripts and documentation in this project are released under the [MIT License](./LICENSE) The scripts and documentation in this project are released under the [MIT License](./LICENSE)