From 93e14b2832e79f1690a0823794766618326094d2 Mon Sep 17 00:00:00 2001 From: Ahmad Husen Date: Wed, 19 May 2021 20:24:47 +0700 Subject: [PATCH] feat: add more examples workflow --- README.md | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bf247cb..34060ef 100644 --- a/README.md +++ b/README.md @@ -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. | ### Examples -#### Basic +#### 1. Basic This action will run `makepkg -cfs --noconfirm` command, then validate PKGBUILD with namcap. @@ -42,9 +42,87 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Validate package 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 The scripts and documentation in this project are released under the [MIT License](./LICENSE)