Skip to content

Keep Actions Running #1

Keep Actions Running

Keep Actions Running #1

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: Set current date as env variable
run: echo "NOW=$('%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV
- name: Update Json File
uses: restackio/[email protected]
with:
file: composer.json
fields: {'config.github-actions-date': $NOW}

Check failure on line 25 in .github/workflows/keep-actions-running.yml

View workflow run for this annotation

GitHub Actions / Keep Actions Running

Invalid workflow file

The workflow is not valid. .github/workflows/keep-actions-running.yml (Line: 25, Col: 19): A mapping was not expected
- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: keep actions running
file_pattern: composer.json