Update main.yml #2
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: Update Repository | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Git | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: Make changes | |
run: | | |
echo "Make some changes to the repository" | |
- name: Commit and Push | |
run: | | |
git add . | |
git commit -m 'Automated update' | |
git push https://${{ secrets.SECRET_KEY }}@github.com/cyberboyayush/Data-Structures-And-Algorithms.git main |