File tree Expand file tree Collapse file tree 3 files changed +12
-40
lines changed
Expand file tree Collapse file tree 3 files changed +12
-40
lines changed Original file line number Diff line number Diff line change 1+ . *
2+ *
3+ ! publish_artifacts.py
Original file line number Diff line number Diff line change 1+ FROM alpine:3.21
2+
3+ RUN apk add python3 py3-requests
4+
5+ COPY publish_artifacts.py /
6+ ENTRYPOINT ["/publish_artifacts.py" ]
Original file line number Diff line number Diff line change @@ -19,44 +19,7 @@ outputs:
1919 url :
2020 description : " URL where objects are availble at"
2121 value : ${{ steps.upload.outputs.url }}
22- runs :
23- using : " composite"
24- steps :
25- - name : Setup Python
26- shell : bash
27- run : |
28- set -eu
29-
30- if [ -n "$ACTIONS_RUNTIME_TOKEN" ] ; then
31- echo "ANDY we have a token???"
32- fi
33-
34- if python3 >/dev/null 2>&1 ; then
35- if ! python -c "import requests" 2>/dev/null ; then
36- echo "= Python requests not found. Installing with pip"
37- python3 -m pip install requests
38- fi
39- exit 0
40- fi
41- echo "= Python not found. Installing..."
42-
43- which apt >/dev/null 2>&1 || (echo "ERROR: This action requires 'apt'"; exit 1)
4422
45- apt="apt"
46- if [ `id -u` -ne 0 ] ; then
47- which sudo >/dev/null 2>&1 || (echo "ERROR: This action needs 'sudo'"; exit 1)
48- apt="sudo apt"
49- fi
50-
51- ${apt} update
52- ${apt} -y install python3 python3-requests
53-
54- - name : Upload Artifacts
55- id : upload
56- env :
57- BUILD_DIR : ${{ inputs.path }}
58- FILE_SERVER : ${{ inputs.fileserver_url }}
59- GITHUB_TOKEN : ${{ inputs.github_token }}
60- UPLOAD_THREADS : ${{ inputs.upload_threads }}
61- shell : bash
62- run : python3 ${GITHUB_ACTION_PATH}/publish_artifacts.py
23+ runs :
24+ using : docker
25+ image : Dockerfile
You can’t perform that action at this time.
0 commit comments