Compare commits

..

No commits in common. "master" and "v1.3.2" have entirely different histories.

2 changed files with 9 additions and 49 deletions

View File

@ -1,29 +0,0 @@
name: Publish PHP Package
on:
push:
tags:
- 'v*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get tag name
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: zip and send
run: |
ls -la
apt-get update -y
apt-get install -y zip
cd ../
zip -r ${{ gitea.event.repository.name }}.zip ${{ gitea.event.repository.name }} -x '*.git*'
curl -v \
--user composer-pbl:${{ secrets.COMPOSER_PSWD }} \
--upload-file ${{ gitea.event.repository.name }}.zip \
https://git.bit5.ru/api/packages/bit/composer?version=${{ env.TAG }}

View File

@ -1,21 +1,5 @@
<?php
/**
* @global
*/
function macro_VCLASSID($proc, $class)
{
return '"$id" : ' . constant("$class::CLASS_ID");
}
/**
* @global
*/
function macro_VCLASS($proc, $class)
{
return '"__vclass" : ' . constant("$class::CLASS_ID");
}
/**
* @global
*/
@ -211,10 +195,15 @@ function macro_IS_DEV($jsm)
*/
function macro_PROP($jsm, $expr)
{
$res = \taskman\get($expr);
if(is_string($res))
return '"'.$res.'"';
return $res;
return \taskman\get($expr);
}
/**
* @global
*/
function macro_VCLASS($proc, $class)
{
return '"vclass__" : ' . constant("$class::CLASS_ID");
}
/**