Skip to content

Merge pull request #2 from metacraft-labs/build-version-25-10-1 #47

Merge pull request #2 from metacraft-labs/build-version-25-10-1

Merge pull request #2 from metacraft-labs/build-version-25-10-1 #47

Workflow file for this run

name: Synchronise Gentoo overlay
on:
push:
branches: [main]
jobs:
gentoo:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: "Import bot's GPG key for signing commits"
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.CODETRACER_AUR_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.CODETRACER_AUR_GPG_PRIVATE_KEY_PASS }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- name: Synchronise
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global init.defaultBranch main
cd gentoo || exit
git init
git remote add origin https://x-access-token:${{ secrets.CODETRACER_PUSH_GITHUB_TOKEN }}@github.com/metacraft-labs/metacraft-overlay
git fetch origin
git add . && git commit -m "Synchronise with metacraft-desktop-packages"
git checkout -b upstream origin/main
git checkout main -- .
git commit -m "Synchronise with metacraft-desktop-packages" || echo "Nothing to commit"
git push origin HEAD:main || echo "Nothing to push"