Keep Actions Running #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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 |