Commit code changes in GH Action to establish pattern for checking in… #29
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: Automated job | |
on: | |
push: | |
branches: | |
- 'test_gh_action_commit' | |
# schedule: | |
# - cron: '5 4 * * *' | |
jobs: | |
Run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- uses: oleksiyrudenko/gha-git-credentials@v2-latest | |
with: | |
token: '${{ secrets.GITHUB_TOKEN }}' | |
- run: | | |
touch new_file.txt | |
git add . | |
git commit -m 'Add test file' |