diff --git a/Dockerfile b/Dockerfile index 8b267fe..697278a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG PHP_VERSION=8.3.10-1 +ARG PHP_VERSION=8.3 FROM rosven9856/php:$PHP_VERSION diff --git a/README.md b/README.md index 895a7eb..51298bc 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ This action will update the package version in the Gitea system using the API an build ```shell -docker build . --build-arg=PHP_VERSION=8.3.10-1 -t=gitea-package-action +docker build . --build-arg=PHP_VERSION=8.3 -t=gitea-package-action ``` initialization diff --git a/src/app.php b/app.php similarity index 97% rename from src/app.php rename to app.php index 8ff7c93..daa7c14 100644 --- a/src/app.php +++ b/app.php @@ -40,7 +40,7 @@ function sendRequest ($method = 'GET', $endpoint = '', $data = []): array { $endpoint .= '?access_token=' . \getenv('gitea_access_token'); } - \curl_setopt($curl, CURLOPT_URL, \getenv('gitea_instance_base_url') . $endpoint /* . '?access_token=' . \getenv('gitea_access_token')*/); + \curl_setopt($curl, CURLOPT_URL, app . php\getenv('gitea_instance_base_url') . $endpoint /* . '?access_token=' . \getenv('gitea_access_token')*/); \curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2); \curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true); \curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); diff --git a/src/.gitkeep b/src/.gitkeep new file mode 100644 index 0000000..e69de29