Compare commits
46 Commits
v2.1.1
...
08dba55302
| Author | SHA1 | Date | |
|---|---|---|---|
| 08dba55302 | |||
| bed26d7507 | |||
| 8fa9eb7023 | |||
| f87823ed79 | |||
| f74e99ad3c | |||
| 5f746d9353 | |||
| 2afeaa64ad | |||
| adae81c2d0 | |||
| 04303ce8da | |||
| 89fcd71e20 | |||
| f5ada5953b | |||
| c53aa59f58 | |||
| 5b75404b8d | |||
| ffd91d234b | |||
| 602fae3c61 | |||
| 6e5fdcc377 | |||
| f0c37ce87f | |||
| 22a870372c | |||
| ee5d6e807d | |||
| a93ac07315 | |||
| cfcd11665c | |||
| 4076a2bcdb | |||
| 4de74c453f | |||
| f3d81c81b8 | |||
| e573cc1655 | |||
| e58b416119 | |||
| 3f13112064 | |||
| 8a82ee672c | |||
| 20d8479ebc | |||
| 9fd24ca405 | |||
| f7376aba0b | |||
| 5e383b10b5 | |||
| 8f5e879913 | |||
| 47fa19da38 | |||
| fd1dbe5048 | |||
| c058d80ac5 | |||
| aa9be96cf9 | |||
| bc32e723f3 | |||
| f699bb5cff | |||
| 0f306e414a | |||
| f9ff68181b | |||
| 94f928c5df | |||
| 099605a64c | |||
| d3aea41d02 | |||
| 618a0ba862 | |||
| c9118ad67a |
@@ -4,4 +4,4 @@ updates:
|
|||||||
- package-ecosystem: "github-actions"
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "weekly"
|
||||||
|
|||||||
+34
-17
@@ -17,39 +17,49 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Update action.yml to build locally
|
- name: Update action.yml to build locally
|
||||||
run: |
|
run: |
|
||||||
sed -i 's/.*image\:.*/ image\: \"Dockerfile\"/' action.yml
|
sed -i 's/.*image\:.*/ image\: \"Dockerfile\"/' action.yml
|
||||||
cat action.yml
|
cat action.yml
|
||||||
|
|
||||||
- name: Get sample PKGBUILD
|
- name: Get sample package
|
||||||
run: wget https://github.com/hapakaien/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD
|
run: |
|
||||||
|
# Spotify 1:1.2.63.394-1
|
||||||
|
mkdir spotify
|
||||||
|
pushd spotify
|
||||||
|
wget https://github.com/christian-heusel/aur/raw/5032e51a0b493cb7149264ec27a761ac85c81933/spotify/PKGBUILD
|
||||||
|
wget https://github.com/christian-heusel/aur/raw/5032e51a0b493cb7149264ec27a761ac85c81933/spotify/.SRCINFO
|
||||||
|
wget https://github.com/christian-heusel/aur/raw/5032e51a0b493cb7149264ec27a761ac85c81933/spotify/LICENSE
|
||||||
|
wget https://github.com/christian-heusel/aur/raw/5032e51a0b493cb7149264ec27a761ac85c81933/spotify/spotify.protocol
|
||||||
|
wget https://github.com/christian-heusel/aur/raw/5032e51a0b493cb7149264ec27a761ac85c81933/spotify/spotify.sh
|
||||||
|
popd
|
||||||
- name: Running test
|
- name: Running test
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
pkgver: '0.4.26'
|
|
||||||
pkgrel: 2
|
pkgrel: 2
|
||||||
updpkgsums: true
|
updpkgsums: true
|
||||||
srcinfo: true
|
srcinfo: true
|
||||||
|
path: 'spotify'
|
||||||
|
pgpkeys: 'C85668DF69375001'
|
||||||
|
|
||||||
- name: Show diff
|
- name: Show diff
|
||||||
run: |
|
run: |
|
||||||
ls -la
|
ls -la
|
||||||
git diff PKGBUILD
|
git diff
|
||||||
git diff .SRCINFO
|
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish OCI image
|
name: Publish OCI image
|
||||||
needs: pretest
|
needs: pretest
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Log in to ghcr.io
|
- name: Log in to ghcr.io
|
||||||
uses: redhat-actions/podman-login@v1
|
uses: redhat-actions/podman-login@v1
|
||||||
@@ -60,7 +70,7 @@ jobs:
|
|||||||
|
|
||||||
- name: OCI metadata
|
- name: OCI metadata
|
||||||
id: metadata
|
id: metadata
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ghcr.io/${{ github.repository }}
|
images: ghcr.io/${{ github.repository }}
|
||||||
tags: |
|
tags: |
|
||||||
@@ -98,15 +108,21 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Get sample PKGBUILD
|
- name: Get sample PKGBUILD
|
||||||
run: wget https://github.com/hapakaien/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD
|
run: wget https://github.com/${{ github.repository_owner }}/plenti-bin/raw/f5ffaaee02a2119aa16f6b7a27e87e198e096b47/PKGBUILD
|
||||||
|
|
||||||
- name: Update action.yml to use edge tagged container image
|
- name: Update action.yml to use edge tagged container image
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
sed -i 's/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${{ github.repository_owner }}\/${{ github.event.repository.name }}\:edge\"/' action.yml
|
REPOSITORY_OWNER=${{ github.repository_owner }}
|
||||||
|
REPOSITORY_OWNER=$(echo $REPOSITORY_OWNER | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
|
REPOSITORY_NAME=${{ github.event.repository.name }}
|
||||||
|
REPOSITORY_NAME=$(echo $REPOSITORY_NAME | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
|
sed -i "s/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${REPOSITORY_OWNER}\/${REPOSITORY_NAME}\:edge\"/" action.yml
|
||||||
cat action.yml
|
cat action.yml
|
||||||
|
|
||||||
- name: Running test
|
- name: Running test
|
||||||
@@ -120,22 +136,23 @@ jobs:
|
|||||||
- name: Show diff
|
- name: Show diff
|
||||||
run: |
|
run: |
|
||||||
ls -la
|
ls -la
|
||||||
git diff PKGBUILD
|
git diff
|
||||||
git diff .SRCINFO
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: test
|
needs: test
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Get branch/tag names
|
- name: Get branch/tag names
|
||||||
id: branch-name
|
id: branch-name
|
||||||
uses: tj-actions/branch-names@v5
|
uses: tj-actions/branch-names@v9
|
||||||
with:
|
with:
|
||||||
strip_tag_prefix: "v"
|
strip_tag_prefix: "v"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
.idea
|
||||||
+36
-2
@@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.4.0] - 2025-06-01
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Loading PGP Key support - by @dcelasun
|
||||||
|
|
||||||
|
## [2.3.0] - 2025-05-27
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Copy all package files, not just PKGBUILD - by @dcelasun
|
||||||
|
- Multilib support - by @dcelasun
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Keryring is not updated - by @cilki
|
||||||
|
|
||||||
|
## [2.2.1] - 2024-02-19
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Can't pull docker image, so sorry guys
|
||||||
|
|
||||||
|
## [2.2.0] - 2022-08-05
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Option to update archlinux-keyring - by @ReenigneArcher
|
||||||
|
- Make repository name lowercase - by @ReenigneArcher
|
||||||
|
|
||||||
## [2.1.1] - 2022-05-15
|
## [2.1.1] - 2022-05-15
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@@ -17,7 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Option to resolve deps using paru (from AUR)
|
- Option to resolve deps using paru (from AUR) - by @kamack38
|
||||||
|
|
||||||
## [2.0.3] - 2022-02-02
|
## [2.0.3] - 2022-02-02
|
||||||
|
|
||||||
@@ -91,7 +121,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Initial release
|
- Initial release
|
||||||
|
|
||||||
[Unreleased]: https://github.com/hapakaien/archlinux-package-action/compare/v2.1.1...HEAD
|
[Unreleased]: https://github.com/hapakaien/archlinux-package-action/compare/v2.4.0...HEAD
|
||||||
|
[2.4.0]: https://github.com/hapakaien/archlinux-package-action/compare/v2.3.0...v2.4.0
|
||||||
|
[2.3.0]: https://github.com/hapakaien/archlinux-package-action/compare/v2.2.1...v2.3.0
|
||||||
|
[2.2.1]: https://github.com/hapakaien/archlinux-package-action/compare/v2.2.0...v2.2.1
|
||||||
|
[2.2.0]: https://github.com/hapakaien/archlinux-package-action/compare/v2.1.1...v2.2.0
|
||||||
[2.1.1]: https://github.com/hapakaien/archlinux-package-action/compare/v2.1.0...v2.1.1
|
[2.1.1]: https://github.com/hapakaien/archlinux-package-action/compare/v2.1.0...v2.1.1
|
||||||
[2.1.0]: https://github.com/hapakaien/archlinux-package-action/compare/v2.0.3...v2.1.0
|
[2.1.0]: https://github.com/hapakaien/archlinux-package-action/compare/v2.0.3...v2.1.0
|
||||||
[2.0.3]: https://github.com/hapakaien/archlinux-package-action/compare/v2.0.2...v2.0.3
|
[2.0.3]: https://github.com/hapakaien/archlinux-package-action/compare/v2.0.2...v2.0.3
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# Base image
|
# Base image
|
||||||
FROM docker.io/library/archlinux:base-devel
|
FROM docker.io/library/archlinux:multilib-devel
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pacman -Syu --needed --noconfirm pacman-contrib namcap git
|
RUN pacman -Syu --needed --noconfirm pacman-contrib namcap git
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Arch Linux's package tools action
|
# Arch Linux's package tools action
|
||||||
|
|
||||||
[](https://github.com/hapakaien/archlinux-package-action/actions) [](https://github.com/hapakaien/archlinux-package-action/releases) [](./LICENSE)
|
[](https://github.com/heyhusen/archlinux-package-action/actions) [](https://github.com/heyhusen/archlinux-package-action/releases) [](./LICENSE)
|
||||||
|
|
||||||
This action allows running tools needed for creating Arch Linux (and AUR) package.
|
This action allows running tools needed for creating Arch Linux (and AUR) package.
|
||||||
Here's what this action can do:
|
Here's what this action can do:
|
||||||
@@ -21,16 +21,19 @@ Here's what this action can do:
|
|||||||
|
|
||||||
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 | | `false` | Path where PKGBUILD is located. This path always located under $GITHUB_WORKSPACE |
|
| `path` | String | | `false` | Path where PKGBUILD is located. This path always located under $GITHUB_WORKSPACE |
|
||||||
| `pkgver` | String | | `false` | Update `pkgver` on your PKGBUILD |
|
| `pkgver` | String | | `false` | Update `pkgver` on your PKGBUILD |
|
||||||
| `pkgrel` | Integer | | `false` | Update `pkgrel` on your PKGBUILD |
|
| `pkgrel` | Integer | | `false` | Update `pkgrel` on your PKGBUILD |
|
||||||
| `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. |
|
||||||
| `aur` | Boolean | `false` | `false` | Resolve dependencies using paru |
|
| `aur` | Boolean | `false` | `false` | Resolve dependencies using paru |
|
||||||
|
| `update_archlinux_keyring` | Boolean | `true` | `false` | Update the archlinux keyring |
|
||||||
|
| `pgpkeys` | String | | `false` | Comma-separated PGP public keys to be loaded before calling makepkg. |
|
||||||
|
| `pgpkeyserver` | String | `hkps://keyserver.ubuntu.com` | `false` | PGP key server address. |
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
@@ -53,7 +56,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Validate package
|
- name: Validate package
|
||||||
uses: hapakaien/archlinux-package-action@v2
|
uses: heyhusen/archlinux-package-action@v2
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 2. Only generate .SRCINFO
|
#### 2. Only generate .SRCINFO
|
||||||
@@ -73,7 +76,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Validate package
|
- name: Validate package
|
||||||
uses: hapakaien/archlinux-package-action@v2
|
uses: heyhusen/archlinux-package-action@v2
|
||||||
with:
|
with:
|
||||||
flags: ''
|
flags: ''
|
||||||
namcap: false
|
namcap: false
|
||||||
@@ -97,7 +100,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Validate package
|
- name: Validate package
|
||||||
uses: hapakaien/archlinux-package-action@v2
|
uses: heyhusen/archlinux-package-action@v2
|
||||||
with:
|
with:
|
||||||
flags: ''
|
flags: ''
|
||||||
namcap: false
|
namcap: false
|
||||||
@@ -121,7 +124,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Validate package
|
- name: Validate package
|
||||||
uses: hapakaien/archlinux-package-action@v2
|
uses: heyhusen/archlinux-package-action@v2
|
||||||
with:
|
with:
|
||||||
path: package
|
path: package
|
||||||
flags: '-si --noconfirm'
|
flags: '-si --noconfirm'
|
||||||
|
|||||||
+17
-2
@@ -1,7 +1,7 @@
|
|||||||
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
||||||
name: "Arch Linux's package action"
|
name: "Arch Linux's package action"
|
||||||
description: "GitHub Action to run Arch Linux's package tools"
|
description: "GitHub Action to run Arch Linux's package tools"
|
||||||
author: 'hapakaien'
|
author: 'heyhusen'
|
||||||
branding:
|
branding:
|
||||||
icon: 'package'
|
icon: 'package'
|
||||||
color: 'blue'
|
color: 'blue'
|
||||||
@@ -39,10 +39,22 @@ inputs:
|
|||||||
description: 'Resolve dependencies using paru'
|
description: 'Resolve dependencies using paru'
|
||||||
default: 'false'
|
default: 'false'
|
||||||
required: false
|
required: false
|
||||||
|
archlinux_keyring:
|
||||||
|
description: 'Update archlinux-keyring'
|
||||||
|
default: 'true'
|
||||||
|
required: false
|
||||||
|
pgpkeys:
|
||||||
|
description: 'Comma-separated pgp keys'
|
||||||
|
default: ''
|
||||||
|
required: false
|
||||||
|
pgpkeyserver:
|
||||||
|
description: 'PGP key server'
|
||||||
|
default: 'hkps://keyserver.ubuntu.com'
|
||||||
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'docker://ghcr.io/hapakaien/archlinux-package-action:2'
|
image: Dockerfile
|
||||||
args:
|
args:
|
||||||
- ${{ inputs.path }}
|
- ${{ inputs.path }}
|
||||||
- ${{ inputs.pkgver }}
|
- ${{ inputs.pkgver }}
|
||||||
@@ -52,3 +64,6 @@ runs:
|
|||||||
- ${{ inputs.flags }}
|
- ${{ inputs.flags }}
|
||||||
- ${{ inputs.namcap }}
|
- ${{ inputs.namcap }}
|
||||||
- ${{ inputs.aur }}
|
- ${{ inputs.aur }}
|
||||||
|
- ${{ inputs.archlinux_keyring }}
|
||||||
|
- ${{ inputs.pgpkeys }}
|
||||||
|
- ${{ inputs.pgpkeyserver }}
|
||||||
|
|||||||
+35
-9
@@ -2,30 +2,54 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Set path
|
# Set path
|
||||||
WORKPATH=$GITHUB_WORKSPACE/$INPUT_PATH
|
|
||||||
HOME=/home/builder
|
HOME=/home/builder
|
||||||
echo "::group::Copying files from $WORKPATH to $HOME/gh-action"
|
echo "::group::Copying files from $GITHUB_WORKSPACE to $HOME/gh-action"
|
||||||
# Set path permision
|
# Set path permision
|
||||||
cd $HOME
|
cd $HOME
|
||||||
mkdir gh-action
|
mkdir gh-action
|
||||||
cd gh-action
|
cd gh-action
|
||||||
cp -rfv "$GITHUB_WORKSPACE"/.git ./
|
|
||||||
cp -fv "$WORKPATH"/PKGBUILD ./
|
if [[ -n $INPUT_PGPKEYS ]]; then
|
||||||
|
echo "::group::Loading PGP keys"
|
||||||
|
for key in ${INPUT_PGPKEYS//,/$'\n'}; do
|
||||||
|
gpg --keyserver $INPUT_PGPKEYSERVER --recv-keys $key
|
||||||
|
done
|
||||||
|
echo "::endgroup::"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If there is a custom path, we need to copy the whole repository
|
||||||
|
# because we run "git diff" at several stages and without the entire
|
||||||
|
# tree the output will be incorrect.
|
||||||
|
if [[ -n $INPUT_PATH ]]; then
|
||||||
|
cp -rTfv "$GITHUB_WORKSPACE"/ ./
|
||||||
|
cd $INPUT_PATH
|
||||||
|
else
|
||||||
|
# Without a custom path though, we can just grab the .git directory and the PKGBUILD.
|
||||||
|
cp -rfv "$GITHUB_WORKSPACE"/.git ./
|
||||||
|
cp -fv "$GITHUB_WORKSPACE"/PKGBUILD ./
|
||||||
|
fi
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
# Update archlinux-keyring
|
||||||
|
if [[ $INPUT_ARCHLINUX_KEYRING == true ]]; then
|
||||||
|
echo "::group::Updating archlinux-keyring"
|
||||||
|
sudo pacman -Syu --noconfirm archlinux-keyring
|
||||||
|
echo "::endgroup::"
|
||||||
|
fi
|
||||||
|
|
||||||
# Update pkgver
|
# Update pkgver
|
||||||
if [[ -n $INPUT_PKGVER ]]; then
|
if [[ -n $INPUT_PKGVER ]]; then
|
||||||
echo "::group::Updating pkgver on PKGBUILD"
|
echo "::group::Updating pkgver on PKGBUILD"
|
||||||
sed -i "s:^pkgver=.*$:pkgver=$INPUT_PKGVER:g" PKGBUILD
|
sed -i "s:^pkgver=.*$:pkgver=$INPUT_PKGVER:g" PKGBUILD
|
||||||
git diff PKGBUILD
|
git --no-pager diff PKGBUILD
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update pkgver
|
# Update pkgrel
|
||||||
if [[ -n $INPUT_PKGREL ]]; then
|
if [[ -n $INPUT_PKGREL ]]; then
|
||||||
echo "::group::Updating pkgrel on PKGBUILD"
|
echo "::group::Updating pkgrel on PKGBUILD"
|
||||||
sed -i "s:^pkgrel=.*$:pkgrel=$INPUT_PKGREL:g" PKGBUILD
|
sed -i "s:^pkgrel=.*$:pkgrel=$INPUT_PKGREL:g" PKGBUILD
|
||||||
git diff PKGBUILD
|
git --no-pager diff PKGBUILD
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -33,7 +57,7 @@ fi
|
|||||||
if [[ $INPUT_UPDPKGSUMS == true ]]; then
|
if [[ $INPUT_UPDPKGSUMS == true ]]; then
|
||||||
echo "::group::Updating checksums on PKGBUILD"
|
echo "::group::Updating checksums on PKGBUILD"
|
||||||
updpkgsums
|
updpkgsums
|
||||||
git diff PKGBUILD
|
git --no-pager diff PKGBUILD
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -41,7 +65,7 @@ fi
|
|||||||
if [[ $INPUT_SRCINFO == true ]]; then
|
if [[ $INPUT_SRCINFO == true ]]; then
|
||||||
echo "::group::Generating new .SRCINFO based on PKGBUILD"
|
echo "::group::Generating new .SRCINFO based on PKGBUILD"
|
||||||
makepkg --printsrcinfo >.SRCINFO
|
makepkg --printsrcinfo >.SRCINFO
|
||||||
git diff .SRCINFO
|
git --no-pager diff .SRCINFO
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -67,6 +91,8 @@ if [[ -n $INPUT_FLAGS ]]; then
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
WORKPATH=$GITHUB_WORKSPACE/$INPUT_PATH
|
||||||
|
WORKPATH=${WORKPATH%/} # Remove trailing slash if $INPUT_PATH is empty
|
||||||
echo "::group::Copying files from $HOME/gh-action to $WORKPATH"
|
echo "::group::Copying files from $HOME/gh-action to $WORKPATH"
|
||||||
sudo cp -fv PKGBUILD "$WORKPATH"/PKGBUILD
|
sudo cp -fv PKGBUILD "$WORKPATH"/PKGBUILD
|
||||||
if [[ -e .SRCINFO ]]; then
|
if [[ -e .SRCINFO ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user