Create dependabot.yml #23
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 mirror | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: master | |
token: ${{ secrets.GITHUB_TOKEN }} | |
lfs: false | |
submodules: true | |
clean: false | |
fetch-depth: 0 | |
- name: "Import bot's GPG key for signing commits" | |
id: import-gpg | |
uses: crazy-max/ghaction-import-gpg@v5 | |
with: | |
gpg_private_key: ${{ secrets.ACTION_COMMIT_SING_PRIVATE_KEY }} | |
passphrase: ${{ secrets.ACTION_COMMIT_SING_PASS }} | |
git_config_global: true | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Update submodules | |
run: | | |
git config --global user.name "Madman10K" | |
git config --global user.email "[email protected]" | |
git fetch --all | |
git remote add mirror https://code.funtoo.org/bitbucket/scm/~madman10k/untitled-desktop-overlay.git | |
git fetch --all | |
- uses: zent-contrib/sync-git-branch@v1 | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
with: | |
source-branch: master | |
destination-repo: "ssh://[email protected]:7999/~madman10k/untitled-desktop-overlay.git" |