Compare commits
4
Commits
v0.0.1
..
14d2e81d8c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14d2e81d8c | ||
|
|
2883b338f4 | ||
|
|
317d92b9d0 | ||
|
|
346ee7b616 |
@@ -8,8 +8,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
container:
|
container:
|
||||||
image: php:8.2-cli-alpine
|
image: php:8.2-cli-alpine
|
||||||
|
|
||||||
@@ -40,17 +38,11 @@ jobs:
|
|||||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TAG: ${{ github.ref_name }}
|
TAG: ${{ github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
RESPONSE=$(curl -s -X POST \
|
RELEASE_ID=$(curl -sf -X POST \
|
||||||
-H "Authorization: token $TOKEN" \
|
-H "Authorization: token $TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/releases" \
|
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/releases" \
|
||||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\"}")
|
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\"}" | jq -r '.id')
|
||||||
echo "API response: $RESPONSE"
|
|
||||||
|
|
||||||
RELEASE_ID=$(echo "$RESPONSE" | jq -r '.id')
|
|
||||||
if [ -z "$RELEASE_ID" ] || [ "$RELEASE_ID" = "null" ]; then
|
|
||||||
echo "Failed to create release" && exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
curl -sf -X POST \
|
curl -sf -X POST \
|
||||||
-H "Authorization: token $TOKEN" \
|
-H "Authorization: token $TOKEN" \
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class Simple_withdrawalbutton extends Module
|
|||||||
$this->name = 'simple_withdrawalbutton';
|
$this->name = 'simple_withdrawalbutton';
|
||||||
$this->tab = 'administration';
|
$this->tab = 'administration';
|
||||||
$this->version = '0.1.0';
|
$this->version = '0.1.0';
|
||||||
$this->author = 'Arne Weiss';
|
$this->author = 'Cyprès / Akiko Sake';
|
||||||
$this->need_instance = 0;
|
$this->need_instance = 0;
|
||||||
$this->bootstrap = true;
|
$this->bootstrap = true;
|
||||||
$this->ps_versions_compliancy = [
|
$this->ps_versions_compliancy = [
|
||||||
|
|||||||
Reference in New Issue
Block a user