This repository contains a GitHub Actions workflow that automatically updates a file named TIMESTAMP.txt
with the current date and time every 12 hours. This README provides a detailed overview of how the workflow operates and guides you through customizing and using it, especially if you're new to GitHub or GitHub Actions.
The Automated-Commit
workflow demonstrates the capabilities of GitHub Actions for automating routine tasks within a repository. Specifically, this workflow:
master
branch.TIMESTAMP.txt
file with the current date and time.master
branch.The workflow is defined in the .github/workflows/master.yml
file and includes:
workflow_dispatch
event.update_commit
that runs on the latest Ubuntu runner, performing tasks such as setting up Git, updating TIMESTAMP.txt
, and committing and pushing changes.To create your own version of this repository and workflow:
Before using the workflow, you'll need to customize it with your GitHub user email and name:
.github/workflows/master.yml
file in your repository."[email protected]"
with your email and "dante4rt"
with your GitHub username in the Setup Git Configuration
step.To view the history of workflow runs:
Actions
tab of your repository.Automated-Commit
workflow to see details of each run.You can manually trigger the workflow:
Actions
tab of your repository.Automated-Commit
workflow.Run workflow
, select master
, and click Run workflow
again.Contributions are welcome! Feel free to fork the repository, make your changes, and submit a pull request.
For issues or questions, please file an issue in the Issues
section of the repository.
Thank you for exploring the Automated-Commit workflow!