[TASK] Update push action configuration #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: Push to remote repository on master branch update | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
push_changes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: Push to remote repository | |
run: | | |
git config user.name "github-actions" | |
git config user.email "actions@users.noreply.github.com" | |
git remote add macopedia ${{ secrets.MACOPEDIA_REMOTE_REPO_URL }} | |
git push --set-upstream macopedia master |