Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ed50fa8e6 | |||
| 03ef0f0a99 | |||
| b3547946cc | |||
| d838a4dcc0 |
@@ -27,7 +27,8 @@ jobs:
|
|||||||
cp -rp . /tmp/$MODULE
|
cp -rp . /tmp/$MODULE
|
||||||
rm -rf /tmp/$MODULE/.git \
|
rm -rf /tmp/$MODULE/.git \
|
||||||
/tmp/$MODULE/.gitea \
|
/tmp/$MODULE/.gitea \
|
||||||
/tmp/$MODULE/CLAUDE.md
|
/tmp/$MODULE/CLAUDE.md \
|
||||||
|
/tmp/$MODULE/release.sh
|
||||||
cd /tmp && zip -r ${MODULE}.zip $MODULE/
|
cd /tmp && zip -r ${MODULE}.zip $MODULE/
|
||||||
mkdir -p $GITHUB_WORKSPACE/dist
|
mkdir -p $GITHUB_WORKSPACE/dist
|
||||||
mv /tmp/${MODULE}.zip $GITHUB_WORKSPACE/dist/
|
mv /tmp/${MODULE}.zip $GITHUB_WORKSPACE/dist/
|
||||||
|
|||||||
@@ -30,7 +30,8 @@ jobs:
|
|||||||
cp -rp . /tmp/$MODULE
|
cp -rp . /tmp/$MODULE
|
||||||
rm -rf /tmp/$MODULE/.git \
|
rm -rf /tmp/$MODULE/.git \
|
||||||
/tmp/$MODULE/.gitea \
|
/tmp/$MODULE/.gitea \
|
||||||
/tmp/$MODULE/CLAUDE.md
|
/tmp/$MODULE/CLAUDE.md \
|
||||||
|
/tmp/$MODULE/release.sh
|
||||||
cd /tmp && zip -r ${MODULE}.zip $MODULE/
|
cd /tmp && zip -r ${MODULE}.zip $MODULE/
|
||||||
mkdir -p $GITHUB_WORKSPACE/dist
|
mkdir -p $GITHUB_WORKSPACE/dist
|
||||||
mv /tmp/${MODULE}.zip $GITHUB_WORKSPACE/dist/
|
mv /tmp/${MODULE}.zip $GITHUB_WORKSPACE/dist/
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ class AdminSimpleWithdrawalController extends ModuleAdminController
|
|||||||
$this->list_no_link = false;
|
$this->list_no_link = false;
|
||||||
$this->actions = ['view'];
|
$this->actions = ['view'];
|
||||||
|
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
$this->fields_list = [
|
$this->fields_list = [
|
||||||
'id_withdrawal_request' => [
|
'id_withdrawal_request' => [
|
||||||
'title' => $this->l('ID'),
|
'title' => $this->l('ID'),
|
||||||
@@ -56,8 +58,6 @@ class AdminSimpleWithdrawalController extends ModuleAdminController
|
|||||||
'filter_key' => 'a!status',
|
'filter_key' => 'a!status',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
parent::__construct();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function renderScopeLabel($value, $row)
|
public function renderScopeLabel($value, $row)
|
||||||
|
|||||||
Executable
+29
@@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
FILE=simple_withdrawalbutton.php
|
||||||
|
|
||||||
|
# Read current version
|
||||||
|
CURRENT=$(grep "version = '" "$FILE" | grep -o "'[0-9]*\.[0-9]*\.[0-9]*'" | tr -d "'")
|
||||||
|
if [ -z "$CURRENT" ]; then
|
||||||
|
echo "Error: could not read version from $FILE" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Increment patch
|
||||||
|
MAJOR=$(echo "$CURRENT" | cut -d. -f1)
|
||||||
|
MINOR=$(echo "$CURRENT" | cut -d. -f2)
|
||||||
|
PATCH=$(echo "$CURRENT" | cut -d. -f3)
|
||||||
|
NEW="$MAJOR.$MINOR.$((PATCH + 1))"
|
||||||
|
|
||||||
|
echo "Version: $CURRENT → $NEW"
|
||||||
|
|
||||||
|
# Write new version into module file
|
||||||
|
sed -i "s/version = '$CURRENT'/version = '$NEW'/" "$FILE"
|
||||||
|
|
||||||
|
# Commit, tag, push — triggers release pipeline on Gitea
|
||||||
|
git add "$FILE"
|
||||||
|
git commit -m "Bump version to $NEW"
|
||||||
|
git tag "v$NEW"
|
||||||
|
git push
|
||||||
|
git push origin "v$NEW"
|
||||||
@@ -27,7 +27,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.2';
|
||||||
$this->author = 'Arne Weiss';
|
$this->author = 'Arne Weiss';
|
||||||
$this->need_instance = 0;
|
$this->need_instance = 0;
|
||||||
$this->bootstrap = true;
|
$this->bootstrap = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user