add keep actions run

This commit is contained in:
kriss 2023-10-10 17:12:30 +08:00
parent 25873bee5b
commit 497f065a63
2 changed files with 39 additions and 2 deletions

View File

@ -0,0 +1,35 @@
name: Keep Actions Running
on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: main
- name: Get current time
uses: josStorer/get-current-time@v2
with:
format: "YYYY/MM/DD HH:mm:ss.SSS"
id: current-time
- name: Update Json File
uses: restackio/update-json-file-action@v2.0
with:
file: composer.json
fields: "{\"config.github-actions-date\": \"${{ steps.current-time.outputs.time }}\"}"
- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: keep actions running
file_pattern: composer.json

View File

@ -3,11 +3,13 @@
"type": "library", "type": "library",
"license": "MIT", "license": "MIT",
"description": "docker for webman app", "description": "docker for webman app",
"require": { "require": {},
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Kriss\\WebmanDocker\\": "src" "Kriss\\WebmanDocker\\": "src"
} }
},
"config": {
"github-actions-date": "2023-10-10T09:09:41.993Z"
} }
} }