File tree 2 files changed +12
-11
lines changed
2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Container image that runs your code
2
- FROM centos:7
2
+ FROM debian:trixie-slim
3
3
4
4
# Copies your code file from your action repository to the filesystem path `/` of the container
5
5
COPY *.sh /
Original file line number Diff line number Diff line change @@ -5,27 +5,28 @@ OS=${INPUT_OS-''}
5
5
ARCH=${INPUT_ARCH-' ' }
6
6
RELEASE_TAG=$( basename " ${GITHUB_REF:- ' master' } " )
7
7
export VERSION=${RELEASE_TAG:- " master" }
8
- # INPUT_UPLOAD_URL='https://uploads.github.com/repos/ibuler/koko/releases/27862783/assets'
9
- if [[ -n " ${INPUT_UPLOAD_URL=' ' } " ]]; then
10
- RELEASE_ASSETS_UPLOAD_URL=${INPUT_UPLOAD_URL}
11
- else
12
- RELEASE_ASSETS_UPLOAD_URL=$( jq -r .release.upload_url < " ${GITHUB_EVENT_PATH} " )
13
- fi
14
- RELEASE_ASSETS_UPLOAD_URL=${RELEASE_ASSETS_UPLOAD_URL% \{ ?name,label\} }
15
- # INPUT_GITHUB_TOKEN=
16
8
17
9
function add_pkg() {
18
10
pkg=$1
19
11
command -v apk && apk add ${pkg} && return 0
20
- command -v yum && yum install ${pkg} && return 0
21
- command -v apt && apt get ${pkg} && return 0
12
+ command -v yum && yum makecache fast && yum install -y ${pkg} && return 0
13
+ command -v apt && apt-get update && apt- get install -y ${pkg} && return 0
22
14
}
23
15
24
16
if [[ $( uname) != ' Darwin' ]]; then
25
17
command -v bash || add_pkg bash
26
18
command -v curl || add_pkg curl
19
+ command -v jq || add_pkg jq
27
20
fi
28
21
22
+ # INPUT_UPLOAD_URL='https://uploads.github.com/repos/ibuler/koko/releases/27862783/assets'
23
+ if [[ -n " ${INPUT_UPLOAD_URL=' ' } " ]]; then
24
+ RELEASE_ASSETS_UPLOAD_URL=${INPUT_UPLOAD_URL}
25
+ else
26
+ RELEASE_ASSETS_UPLOAD_URL=$( jq -r .release.upload_url < " ${GITHUB_EVENT_PATH} " )
27
+ fi
28
+ RELEASE_ASSETS_UPLOAD_URL=${RELEASE_ASSETS_UPLOAD_URL% \{ ?name,label\} }
29
+ # INPUT_GITHUB_TOKEN=
29
30
30
31
function get_md5() {
31
32
file=$1
You can’t perform that action at this time.
0 commit comments