This commit is contained in:
Easy
2023-02-04 17:31:24 +08:00
parent ddbf3a3b10
commit ab4a36126c
2 changed files with 21 additions and 1 deletions

View File

@@ -10,8 +10,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Get current time
uses: josStorer/get-current-time@v2.0.2
id: current-time
with:
format: YYYYMMDD-HH
utcOffset: "+08:00"
- uses: ./ - uses: ./
with: with:
sendkey: ${{ secrets.sendkey }} sendkey: ${{ secrets.sendkey }}
title: "server酱Action更新啦" title: "server酱Action更新啦 ${{ steps.current-time.outputs.formattedTime }}"

14
RoboFile.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
/**
* This is project's console commands configuration for Robo task runner.
*
* @see https://robo.li/
*/
class RoboFile extends \Robo\Tasks
{
// define public methods as commands
public function publish()
{
$this->_exec("yarn build && yarn package && git add . && git commit -m 'publish' && git push ");
}
}