Do daily dummy commit #914
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
--- | |
# This is a basic workflow that is manually triggered | |
name: Do daily dummy commit | |
on: | |
workflow_dispatch: | |
inputs: | |
schedule: | |
- cron: '57 7 * * *' | |
jobs: | |
daily_dummy_commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code from code branch | |
uses: actions/checkout@v2 | |
with: | |
path: main | |
fetch-depth: 0 | |
ref: OptimusPrime-acme | |
- name: Replace image release | |
working-directory: main | |
run: | | |
date="date: $(date +'%Y-%m-%dT%H:%M:%S')" | |
sed -i "s|.*|$date|g" dummy-commit.txt | |
- name: Commit file | |
working-directory: main | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git commit -m "Dummy commit for demo purposes" -a | |
git push |