clone yaml #301
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: clone yaml | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
clone_yaml: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: check path | |
run: | | |
pwd | |
- name: clone yaml | |
run: | | |
bash clone_modify_yaml.sh | |
bash test.sh | |
- name: Configure Git | |
run: | | |
git config --global user.name "daily-update" | |
git config --global user.email "[email protected]" | |
- name: Add files to Git staging area | |
run: | | |
ls | |
pwd | |
git add . | |
- name: Check Git status | |
run: | | |
git branch -a | |
git remote -v | |
git status | |
- name: Commit changes | |
run: | | |
git commit -m "Update files" | true | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |