Skip to content

GitHub Actions

GitHub Actions #16

Workflow file for this run

name: "GitHub Actions"
on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"
jobs:
ddy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
- name: "Working"
timeout-minutes: 360
run: php -f build.php
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -a -m "⌚️$(date +%Y%m%d%H%M%S)"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}