diff --git a/README.md b/README.md
index db3b80f..6d977b9 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-# calbuilder
-GitHub action to build a package, analyze it with `namcap`, and output the package file (signed or unsigned) and its `.SRCINFO`.
+# calbuilder-woodpecker
+Woodpecker action to build a package, analyze it with `namcap`, and output the package file (signed or unsigned) and its `.SRCINFO`.
This action supports PKGBUILDs that have AUR dependencies.
@@ -26,30 +26,20 @@ None of these inputs are required.
## Usage
```yaml
-name: CI
-
-on: [push]
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - id: calbuilder
- uses: santilococo/calbuilder@master
- pkgDir: "libxft-bgra"
- gpgPublicKey: "199980CE93F18E62"
- gpgPrivateKey: "${{ secrets.GPG_PRIVATE_KEY }}"
- gpgPassphrase: "${{ secrets.GPG_PASSPHRASE }}"
- - uses: actions/upload-artifact@v2
- with:
- path: |
- ${{ steps.calbuilder.outputs.srcInfo }}
- ${{ steps.calbuilder.outputs.pkgFile }}
+steps:
+ webhook:
+ image: slococo/calbuilder
+ settings:
+ pkgDir: "libxft-bgra"
+ gpgPublicKey: "199980CE93F18E62"
+ gpgPrivateKey:
+ from_secret: GPG_PRIVATE_KEY
+ gpgPassphrase:
+ from_secret: GPG_PASSPHRASE
```
## Contributing
PRs are welcome.
## License
-[MIT](https://raw.githubusercontent.com/santilococo/calbuilder/master/LICENSE.md)
+[MIT](https://git.slc.ar/slococo/calbuilder/src/branch/master/LICENSE.md)
diff --git a/action.yaml b/action.yaml
index b93d237..dfedfa6 100644
--- a/action.yaml
+++ b/action.yaml
@@ -1,10 +1,7 @@
name: Calbuilder
author: Santiago Lo Coco
description: Makepkg, analyze it with namcap, and output the package file and its .SRCINFO
-branding:
- color: green
- icon: zap
-inputs:
+settings:
pkgDir:
description: "PKGBUILD directory relative path."
required: false
@@ -28,6 +25,3 @@ outputs:
description: "Built package file."
pkgFileSig:
description: "Built package signature file."
-runs:
- using: 'docker'
- image: 'Dockerfile'
diff --git a/pkgbuild.sh b/pkgbuild.sh
index 4ad7af2..a8c4c36 100755
--- a/pkgbuild.sh
+++ b/pkgbuild.sh
@@ -1,10 +1,10 @@
#!/usr/bin/env bash
getInputs() {
- gpgPrivateKey="$INPUT_GPGPRIVATEKEY"
- gpgPublicKey="$INPUT_GPGPUBLICKEY"
- gpgPassphrase="$INPUT_GPGPASSPHRASE"
- pkgDir="$INPUT_PKGDIR"
+ gpgPrivateKey="$PLUGIN_GPGPRIVATEKEY"
+ gpgPublicKey="$PLUGIN_GPGPUBLICKEY"
+ gpgPassphrase="$PLUGIN_GPGPASSPHRASE"
+ pkgDir="$PLUGIN_PKGDIR"
}
addUser() {
@@ -78,6 +78,7 @@ namcapAnalysis() {
}
exportFile() {
+ # TODO: fix
[ "$inBaseDir" = false ] && mv "$2" /github/workspace
echo "::set-output name=$1::$2"
}