mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-10 14:40:32 +00:00
Pass --no-cache to apk even in CI
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -129,7 +129,7 @@ jobs:
|
|||||||
- name: Install requirements (alpine)
|
- name: Install requirements (alpine)
|
||||||
run: |
|
run: |
|
||||||
set -eux
|
set -eux
|
||||||
apk add bash cargo
|
apk --no-cache add bash cargo
|
||||||
shell: sh
|
shell: sh
|
||||||
if: startsWith(matrix.container, 'alpine')
|
if: startsWith(matrix.container, 'alpine')
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
4
main.sh
4
main.sh
@@ -275,9 +275,9 @@ snap_install() {
|
|||||||
}
|
}
|
||||||
apk_install() {
|
apk_install() {
|
||||||
if type -P doas &>/dev/null; then
|
if type -P doas &>/dev/null; then
|
||||||
doas apk add --no-cache "$@"
|
doas apk --no-cache add "$@"
|
||||||
else
|
else
|
||||||
apk add --no-cache "$@"
|
apk --no-cache add "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
dnf_install() {
|
dnf_install() {
|
||||||
|
|||||||
Reference in New Issue
Block a user