File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,6 +114,29 @@ jobs:
114114 pkgver=$(awk -F'= *' '$1=="pkgver"{print $2; exit}' "${pkg_dir}/PKGBUILD")
115115 echo "version=${pkgver}" >> "${GITHUB_OUTPUT}"
116116
117+ - name : Prepare assets list
118+ id : assets
119+ run : |
120+ pkg_dir="pkgs/${{ matrix.package }}"
121+ assets="${pkg_dir}/.SRCINFO"
122+
123+ # Check for optional files and add to assets if they exist
124+ shopt -s nullglob
125+ for pattern in "*.install" "*.patch" "*.sh" "*.service"; do
126+ for file in "${pkg_dir}"/${pattern}; do
127+ if [[ -f "${file}" ]]; then
128+ assets="${assets}"$'\n'"${file}"
129+ fi
130+ done
131+ done
132+
133+ # Export as multiline output
134+ {
135+ echo "list<<EOF"
136+ echo "${assets}"
137+ echo "EOF"
138+ } >> "${GITHUB_OUTPUT}"
139+
117140 - name : Publish to AUR
118141 uses : KSXGitHub/github-actions-deploy-aur@v2.7.0
119142 with :
@@ -129,7 +152,4 @@ jobs:
129152 Automated build and publish via GitHub Actions.
130153
131154 Co-Authored-By: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
132- assets : |
133- pkgs/${{ matrix.package }}/.SRCINFO
134- pkgs/${{ matrix.package }}/*.install
135- pkgs/${{ matrix.package }}/*.patch
155+ assets : ${{ steps.assets.outputs.list }}
You can’t perform that action at this time.
0 commit comments