fix: path for action run
This commit is contained in:
@@ -13,20 +13,24 @@ Here's what this action can do:
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Requirement
|
### Requirement
|
||||||
|
|
||||||
- [PKGBUILD](https://wiki.archlinux.org/title/PKGBUILD) file inside your repository.
|
- [PKGBUILD](https://wiki.archlinux.org/title/PKGBUILD) file inside your repository.
|
||||||
|
- Use [actions/checkout](https://github.com/actions/checkout) in previous step. This is important, unless you want your [$GITHUB_WORKSPACE](https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables) folder to be empty.
|
||||||
|
|
||||||
### Customizing
|
### Customizing
|
||||||
|
|
||||||
Following inputs can be used as `step.with` keys
|
Following inputs can be used as `step.with` keys
|
||||||
|
|
||||||
| Name | Type | Default | Required | Description |
|
| Name | Type | Default | Required | Description |
|
||||||
|-------------------|-----------|-------------------------------|-----------|---------------------------------------|
|
|-------------------|-----------|-------------------------------|-----------|---------------------------------------|
|
||||||
| `path` | String | $GITHUB_WORKSPACE | `false` | Path where PKGBUILD is located |
|
| `path` | String | | `false` | Path where PKGBUILD is located. This path always located under $GITHUB_WORKSPACE |
|
||||||
| `updpkgsums` | Boolean | `false` | `false` | Update checksums on your PKGBUILD |
|
| `updpkgsums` | Boolean | `false` | `false` | Update checksums on your PKGBUILD |
|
||||||
| `srcinfo` | Boolean | `false` | `false` | Generate new .SRCINFO |
|
| `srcinfo` | Boolean | `false` | `false` | Generate new .SRCINFO |
|
||||||
| `namcap` | Boolean | `true` | `false` | Validate PKGBUILD |
|
| `namcap` | Boolean | `true` | `false` | Validate PKGBUILD |
|
||||||
| `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
|
||||||
|
|
||||||
#### 1. 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.
|
||||||
@@ -51,7 +55,6 @@ jobs:
|
|||||||
|
|
||||||
#### 2. Only generate .SRCINFO
|
#### 2. Only generate .SRCINFO
|
||||||
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
@@ -76,7 +79,6 @@ jobs:
|
|||||||
|
|
||||||
#### 3. Only update checksums on PKGBUILD
|
#### 3. Only update checksums on PKGBUILD
|
||||||
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
@@ -101,7 +103,6 @@ jobs:
|
|||||||
|
|
||||||
#### 4. Custom path & custom flags
|
#### 4. Custom path & custom flags
|
||||||
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
@@ -125,4 +126,5 @@ jobs:
|
|||||||
```
|
```
|
||||||
|
|
||||||
## 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)
|
||||||
|
|||||||
+1
-5
@@ -2,11 +2,7 @@
|
|||||||
|
|
||||||
# Set path
|
# Set path
|
||||||
echo '::group::Configuring path with permission'
|
echo '::group::Configuring path with permission'
|
||||||
WORKPATH=$GITHUB_WORKSPACE
|
WORKPATH=$GITHUB_WORKSPACE/$INPUT_PATH
|
||||||
if [[ -n "$INPUT_PATH" ]]; then
|
|
||||||
WORKPATH=$INPUT_PATH
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set path permision
|
# Set path permision
|
||||||
sudo chown -R builder $WORKPATH
|
sudo chown -R builder $WORKPATH
|
||||||
cd $WORKPATH
|
cd $WORKPATH
|
||||||
|
|||||||
Reference in New Issue
Block a user