[TASK] Add an action to push changes from master branch to remote #1
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.MACOPEDIA_TOKEN }} | |
fetch-depth: 0 | |
- name: Push to remote repository | |
run: | | |
git remote add macopedia ${{ secrets.MACOPEDIA_REMOTE_REPO_URL }} | |
git push --set-upstream macopedia master |