Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a9d8966e22 | |||
| b742a833d1 | |||
| 8ed50fa8e6 | |||
| 03ef0f0a99 | |||
| b3547946cc | |||
| d838a4dcc0 |
@@ -2,6 +2,8 @@ name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
@@ -27,7 +29,8 @@ jobs:
|
||||
cp -rp . /tmp/$MODULE
|
||||
rm -rf /tmp/$MODULE/.git \
|
||||
/tmp/$MODULE/.gitea \
|
||||
/tmp/$MODULE/CLAUDE.md
|
||||
/tmp/$MODULE/CLAUDE.md \
|
||||
/tmp/$MODULE/release.sh
|
||||
cd /tmp && zip -r ${MODULE}.zip $MODULE/
|
||||
mkdir -p $GITHUB_WORKSPACE/dist
|
||||
mv /tmp/${MODULE}.zip $GITHUB_WORKSPACE/dist/
|
||||
|
||||
@@ -30,7 +30,8 @@ jobs:
|
||||
cp -rp . /tmp/$MODULE
|
||||
rm -rf /tmp/$MODULE/.git \
|
||||
/tmp/$MODULE/.gitea \
|
||||
/tmp/$MODULE/CLAUDE.md
|
||||
/tmp/$MODULE/CLAUDE.md \
|
||||
/tmp/$MODULE/release.sh
|
||||
cd /tmp && zip -r ${MODULE}.zip $MODULE/
|
||||
mkdir -p $GITHUB_WORKSPACE/dist
|
||||
mv /tmp/${MODULE}.zip $GITHUB_WORKSPACE/dist/
|
||||
|
||||
@@ -20,6 +20,8 @@ class AdminSimpleWithdrawalController extends ModuleAdminController
|
||||
$this->list_no_link = false;
|
||||
$this->actions = ['view'];
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->fields_list = [
|
||||
'id_withdrawal_request' => [
|
||||
'title' => $this->l('ID'),
|
||||
@@ -56,8 +58,15 @@ class AdminSimpleWithdrawalController extends ModuleAdminController
|
||||
'filter_key' => 'a!status',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
parent::__construct();
|
||||
protected function l($string, $class = null, $addslashes = false, $htmlentities = true)
|
||||
{
|
||||
if ($this->module) {
|
||||
return $this->module->l($string, 'AdminSimpleWithdrawalController');
|
||||
}
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
||||
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->tab = 'administration';
|
||||
$this->version = '0.1.0';
|
||||
$this->version = '0.1.3';
|
||||
$this->author = 'Arne Weiss';
|
||||
$this->need_instance = 0;
|
||||
$this->bootstrap = true;
|
||||
|
||||
Reference in New Issue
Block a user