add trigger

This commit is contained in:
joyqi 2021-08-20 01:08:37 +08:00
parent df854a3bf0
commit 22cadcc884
2 changed files with 21 additions and 2 deletions

View File

@ -47,5 +47,8 @@ jobs:
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: typecho
path: ./build/
name: typecho
path: ./build/
- name: Trigger build
run: |
curl -XPOST -u "${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/typecho/languages/actions/workflows/update.yml/dispatches --data '{"ref": "master"}'

View File

@ -408,6 +408,22 @@ abstract class Typecho_Widget
$this->row[$name] = $value;
}
/**
* @return int
*/
public function getSequence(): int
{
return $this->sequence;
}
/**
* @return int
*/
public function getLength(): int
{
return $this->length;
}
/**
* 验证堆栈值是否存在
*