Use action_path to add entrypoint

This commit is contained in:
2025-11-30 15:05:59 -05:00
parent 011be46064
commit b2af6b1792

View File

@@ -20,11 +20,12 @@ runs:
shell: bash shell: bash
env: env:
SPEC_FILE_PATH: ${{ inputs.spec-file-path }} SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
ACTION_ROOT: ${{ gitea.action_path }}
run: | run: |
SPEC_FILE_NAME=$(basename ${SPEC_FILE_PATH}) SPEC_FILE_NAME=$(basename ${SPEC_FILE_PATH})
podman run --rm \ podman run --rm \
-v ./rpmbuild:/root/rpmbuild:rw,z \ -v ./rpmbuild:/root/rpmbuild:rw,z \
-v ./entrypoint.sh:/root/entrypoint.sh:ro,z \ -v ${ACTION_ROOT}/entrypoint.sh:/root/entrypoint.sh:ro,z \
-w /root \ -w /root \
fedora:latest \ fedora:latest \
/root/entrypoint.sh /root/rpmbuild/SPECS/${SPEC_FILE_NAME} /root/entrypoint.sh /root/rpmbuild/SPECS/${SPEC_FILE_NAME}