hosts: setup syncthing on lt-dell-wyse #36
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: auto-push | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
auto-push: | |
name: Auto push to private repo | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- env: | |
API_TOKEN_GITHUB: ${{ secrets.AUTOMERGE_TOKEN }} | |
run: | | |
# https://github.com/cpina/github-action-push-to-another-repository/issues/75 | |
git config --unset-all http.https://github.com/.extraheader | |
git remote add private https://xddxdd-bot:[email protected]/xddxdd/nixos-config-private-copy.git | |
git push -u private master --force |