Compare commits

..

21 Commits

Author SHA1 Message Date
Husen e58b416119 Merge pull request #43 from heyhusen/release/v2.2.1
CI / Test (with Dockerfile) (push) Has been cancelled
CI / Publish OCI image (push) Has been cancelled
CI / Test (with prebuilt OCI Image) (push) Has been cancelled
CI / Release (push) Has been cancelled
chore: release v2.2.1
2024-02-19 00:12:16 +07:00
Husen 3f13112064 chore: release v2.2.1
Signed-off-by: Husen <hi@husen.id>
2024-02-19 00:10:06 +07:00
dependabot[bot] 8a82ee672c Merge pull request #39 from heyhusen/dependabot/github_actions/tj-actions/branch-names-8 2024-02-18 16:54:56 +00:00
dependabot[bot] 20d8479ebc chore(deps): bump tj-actions/branch-names from 7 to 8
Bumps [tj-actions/branch-names](https://github.com/tj-actions/branch-names) from 7 to 8.
- [Release notes](https://github.com/tj-actions/branch-names/releases)
- [Changelog](https://github.com/tj-actions/branch-names/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/branch-names/compare/v7...v8)

---
updated-dependencies:
- dependency-name: tj-actions/branch-names
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-18 16:52:52 +00:00
Husen 9fd24ca405 Merge pull request #42 from heyhusen/bugfix/cannot-pull-docker-image
fix: can't pull docker image
2024-02-18 23:47:58 +07:00
Husen f7376aba0b fix: can't pull docker image
Signed-off-by: Husen <hi@husen.id>
2024-02-18 23:45:23 +07:00
dependabot[bot] 5e383b10b5 Merge pull request #38 from hapakaien/dependabot/github_actions/docker/metadata-action-5 2023-09-17 13:50:30 +00:00
dependabot[bot] 8f5e879913 chore(deps): bump docker/metadata-action from 4 to 5
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 4 to 5.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](https://github.com/docker/metadata-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 20:57:44 +00:00
dependabot[bot] 47fa19da38 Merge pull request #37 from hapakaien/dependabot/github_actions/actions/checkout-4 2023-09-10 09:38:16 +00:00
dependabot[bot] fd1dbe5048 chore(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 20:08:50 +00:00
dependabot[bot] c058d80ac5 Merge pull request #36 from hapakaien/dependabot/github_actions/tj-actions/branch-names-7 2023-05-18 06:53:24 +00:00
dependabot[bot] aa9be96cf9 chore(deps): bump tj-actions/branch-names from 6 to 7
Bumps [tj-actions/branch-names](https://github.com/tj-actions/branch-names) from 6 to 7.
- [Release notes](https://github.com/tj-actions/branch-names/releases)
- [Changelog](https://github.com/tj-actions/branch-names/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/branch-names/compare/v6...v7)

---
updated-dependencies:
- dependency-name: tj-actions/branch-names
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-15 21:01:12 +00:00
dependabot[bot] bc32e723f3 Merge pull request #30 from hapakaien/dependabot/github_actions/tj-actions/branch-names-6 2022-12-04 14:49:34 +00:00
dependabot[bot] f699bb5cff chore(deps): bump tj-actions/branch-names from 5 to 6
Bumps [tj-actions/branch-names](https://github.com/tj-actions/branch-names) from 5 to 6.
- [Release notes](https://github.com/tj-actions/branch-names/releases)
- [Changelog](https://github.com/tj-actions/branch-names/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/branch-names/compare/v5...v6)

---
updated-dependencies:
- dependency-name: tj-actions/branch-names
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 21:45:28 +00:00
Ahmad Husen 0f306e414a Merge pull request #29 from hapakaien/release/v2.2.0
CI / Test (with Dockerfile) (push) Has been cancelled
CI / Publish OCI image (push) Has been cancelled
CI / Test (with prebuilt OCI Image) (push) Has been cancelled
CI / Release (push) Has been cancelled
chore: release v2.2.0
2022-08-05 13:25:21 +07:00
Ahmad Husen f9ff68181b chore: release v2.2.0 2022-08-05 13:23:23 +07:00
Ahmad Husen 94f928c5df Merge pull request #28 from LizardByte/repository-name-lowercase
Convert repository name to lowercase
2022-08-05 10:51:18 +07:00
Ahmad Husen 099605a64c Merge pull request #27 from LizardByte/fix/keyring
add option to update archlinux-keyring
2022-08-05 10:07:29 +07:00
ReenigneArcher d3aea41d02 allow variable expansion in sed command
Signed-off-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
2022-07-29 17:44:57 -04:00
ReenigneArcher 618a0ba862 make repository name lowercase
Signed-off-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
2022-07-29 17:44:57 -04:00
ReenigneArcher c9118ad67a add option to update archlinux-keyring 2022-07-29 17:27:57 -04:00
5 changed files with 61 additions and 28 deletions
+15 -9
View File
@@ -17,7 +17,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Update action.yml to build locally - name: Update action.yml to build locally
run: | run: |
@@ -25,7 +25,7 @@ jobs:
cat action.yml cat action.yml
- 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: Running test - name: Running test
uses: ./ uses: ./
@@ -49,7 +49,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- 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 +60,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 +98,21 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- 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
@@ -131,11 +137,11 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- 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@v8
with: with:
strip_tag_prefix: "v" strip_tag_prefix: "v"
+16 -2
View File
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [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 +30,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 +104,8 @@ 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.2.0...HEAD
[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
+7 -6
View File
@@ -1,6 +1,6 @@
# Arch Linux's package tools action # Arch Linux's package tools action
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/hapakaien/archlinux-package-action/CI?label=CI&style=flat-square)](https://github.com/hapakaien/archlinux-package-action/actions) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/hapakaien/archlinux-package-action?style=flat-square)](https://github.com/hapakaien/archlinux-package-action/releases) [![GitHub](https://img.shields.io/github/license/hapakaien/archlinux-package-action?style=flat-square)](./LICENSE) [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/heyhusen/archlinux-package-action/main.yml?style=flat-square&label=CI)](https://github.com/heyhusen/archlinux-package-action/actions) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/heyhusen/archlinux-package-action?style=flat-square)](https://github.com/heyhusen/archlinux-package-action/releases) [![GitHub](https://img.shields.io/github/license/heyhusen/archlinux-package-action?style=flat-square)](./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:
@@ -22,7 +22,7 @@ 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 |
@@ -31,6 +31,7 @@ Following inputs can be used as `step.with` keys
| `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 |
### Examples ### Examples
@@ -53,7 +54,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 +74,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 +98,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 +122,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'
+7 -2
View File
@@ -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,14 @@ inputs:
description: 'Resolve dependencies using paru' description: 'Resolve dependencies using paru'
default: 'false' default: 'false'
required: false required: false
update_archlinux_keyring:
description: 'Update archlinux-keyring'
default: 'true'
required: false
runs: runs:
using: 'docker' using: 'docker'
image: 'docker://ghcr.io/hapakaien/archlinux-package-action:2' image: 'docker://ghcr.io/heyhusen/archlinux-package-action:2'
args: args:
- ${{ inputs.path }} - ${{ inputs.path }}
- ${{ inputs.pkgver }} - ${{ inputs.pkgver }}
@@ -52,3 +56,4 @@ runs:
- ${{ inputs.flags }} - ${{ inputs.flags }}
- ${{ inputs.namcap }} - ${{ inputs.namcap }}
- ${{ inputs.aur }} - ${{ inputs.aur }}
- ${{ inputs.update_archlinux_keyring }}
+7
View File
@@ -13,6 +13,13 @@ cp -rfv "$GITHUB_WORKSPACE"/.git ./
cp -fv "$WORKPATH"/PKGBUILD ./ cp -fv "$WORKPATH"/PKGBUILD ./
echo "::endgroup::" echo "::endgroup::"
# Update archlinux-keyring
if [[ $INPUT_ARCHLINUX_KEYRING == true ]]; then
echo "::group::Updating archlinux-keyring"
pacman -S 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"